Package org.geomajas.sld.geometry

Examples of org.geomajas.sld.geometry.PointTypeInfo


  }

  private Geometry toSimpleGeometry(GeometryFactory factory, AbstractGeometryInfo geom) {
    Geometry geometry = null;
    if (geom instanceof PointTypeInfo) {
      PointTypeInfo point = (PointTypeInfo) geom;
      if (point.ifCoord()) {
        geometry = factory.createPoint(getCoordinates(Collections.singletonList(point.getCoord()))[0]);
      } else if (point.ifCoordinates()) {
        geometry = factory.createPoint(getCoordinates(point.getCoordinates())[0]);
      }
    } else if (geom instanceof LineStringTypeInfo) {
      LineStringTypeInfo linestring = (LineStringTypeInfo) geom;
      if (linestring.ifCoordList()) {
        geometry = factory.createLineString(getCoordinates(linestring.getCoordList()));
View Full Code Here

TOP

Related Classes of org.geomajas.sld.geometry.PointTypeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.