Tabnine Logo
Ring.getControlPoints
Code IndexAdd Tabnine to your IDE (free)

How to use
getControlPoints
method
in
org.deegree.geometry.primitive.Ring

Best Java code snippets using org.deegree.geometry.primitive.Ring.getControlPoints (Showing top 4 results out of 315)

origin: deegree/deegree3

/**
 * @param linearRing
 * @throws XMLStreamException
 * @throws UnknownCRSException
 * @throws TransformationException
 */
public void exportLinearRing( Ring linearRing )
            throws XMLStreamException, TransformationException, UnknownCRSException {
  startGeometry( "LinearRing", linearRing );
  exportCoordinates( linearRing.getControlPoints() );
  writer.writeEndElement(); // </gml:LinearRing>
}
origin: deegree/deegree3

@Override
public Points getExteriorRingCoordinates() {
  if ( patches.size() == 1 ) {
    if ( patches.get( 0 ) instanceof PolygonPatch ) {
      PolygonPatch patch = (PolygonPatch) patches.get( 0 );
      return patch.getExteriorRing().getControlPoints();
    }
    throw new IllegalArgumentException( Messages.getMessage( "SURFACE_IS_NON_PLANAR" ) );
  }
  throw new IllegalArgumentException( Messages.getMessage( "SURFACE_MORE_THAN_ONE_PATCH" ) );
}
origin: deegree/deegree3

@Override
public List<Points> getInteriorRingsCoordinates() {
  List<Points> controlPoints = new ArrayList<Points>();
  if ( patches.size() == 1 ) {
    if ( patches.get( 0 ) instanceof PolygonPatch ) {
      PolygonPatch patch = (PolygonPatch) patches.get( 0 );
      List<Ring> interiorRings = patch.getInteriorRings();
      for ( Ring ring : interiorRings ) {
        controlPoints.add( ring.getControlPoints() );
      }
    } else {
      throw new IllegalArgumentException( Messages.getMessage( "SURFACE_IS_NON_PLANAR" ) );
    }
  } else {
    throw new IllegalArgumentException( Messages.getMessage( "SURFACE_MORE_THAN_ONE_PATCH" ) );
  }
  return controlPoints;
}
origin: deegree/deegree3

private LinearRing transform( Ring ring, Transformation trans )
            throws TransformationException {
  if ( ring != null ) {
    // TODO DefaultRing.getAsLineString currently returns an UnsupportedOpertionException
    // interior.getAsLineString().getControlPoints(),
    Points cP = ring.getControlPoints();
    Points tcP = transform( cP, trans );
    return geomFactory.createLinearRing( ring.getId(), getTargetCRS(), tcP );
  }
  return null;
}
org.deegree.geometry.primitiveRinggetControlPoints

Popular methods of Ring

  • getRingType
    Returns the type of ring.
  • getAsLineString
  • getId
  • getMembers
    Returns the Curves that constitute this Ring.
  • setProperties
  • getCoordinateDimension
  • getCoordinateSystem
  • getPrecision
  • getProperties
  • getStartPoint
  • setType
  • setType

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now