Codota Logo
PolygonPatch.getPolygonPatchType
Code IndexAdd Codota to your IDE (free)

How to use
getPolygonPatchType
method
in
org.deegree.geometry.primitive.patches.PolygonPatch

Best Java code snippets using org.deegree.geometry.primitive.patches.PolygonPatch.getPolygonPatchType (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

private void exportPolygonPatch( PolygonPatch polygonPatch )
            throws XMLStreamException, UnknownCRSException, TransformationException {
  switch ( polygonPatch.getPolygonPatchType() ) {
  case POLYGON_PATCH:
    writer.writeStartElement( gmlNs, "PolygonPatch" );
    writer.writeStartElement( gmlNs, "exterior" );
    exportRing( polygonPatch.getExteriorRing() );
    writer.writeEndElement();
    for ( Ring ring : polygonPatch.getInteriorRings() ) {
      writer.writeStartElement( gmlNs, "interior" );
      exportRing( ring );
      writer.writeEndElement();
    }
    writer.writeEndElement();
    break;
  case TRIANGLE:
    exportTriangle( (Triangle) polygonPatch );
    break;
  case RECTANGLE:
    exportRectangle( (Rectangle) polygonPatch );
    break;
  }
}
origin: deegree/deegree3

private void writePolygonPatch( String id, ICRS crs, PrecisionModel pm, PolygonPatch polyPatch, Writer writer )
            throws IOException {
  PolygonPatchType type = polyPatch.getPolygonPatchType();
  Polygon poly = null;
  switch ( type ) {
  case POLYGON_PATCH:
  case RECTANGLE:
  case TRIANGLE:
    poly = new DefaultPolygon( id, crs, pm, polyPatch.getExteriorRing(), polyPatch.getInteriorRings() );
    break;
  }
  writePolygonWithoutPrefix( poly, writer );
}
origin: deegree/deegree3

private PolygonPatch transform( PolygonPatch patch, Transformation trans )
            throws TransformationException {
  Ring exterior = patch.getExteriorRing();
  LinearRing transformedExteriorRing = transform( exterior, trans );
  PolygonPatch result = null;
  PolygonPatchType type = patch.getPolygonPatchType();
  switch ( type ) {
  case POLYGON_PATCH:
    List<Ring> interiorRings = ( patch ).getInteriorRings();
    List<Ring> transformedInteriorRings = new ArrayList<Ring>( interiorRings == null ? 0 : interiorRings.size() );
    if ( interiorRings != null && !interiorRings.isEmpty() ) {
      for ( Ring interior : interiorRings ) {
        if ( interior != null ) {
          LinearRing lr = transform( interior, trans );
          transformedInteriorRings.add( lr );
        }
      }
    }
    result = geomFactory.createPolygonPatch( transformedExteriorRing, transformedInteriorRings );
    break;
  case RECTANGLE:
    result = geomFactory.createRectangle( transformedExteriorRing );
    break;
  case TRIANGLE:
    result = geomFactory.createTriangle( transformedExteriorRing );
    break;
  }
  return result;
}
org.deegree.geometry.primitive.patchesPolygonPatchgetPolygonPatchType

Popular methods of PolygonPatch

  • getExteriorRing
  • getInteriorRings
  • getBoundaryRings
    Returns the boundary rings (interior + exteriors)
  • getCoordinateDimension

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now