Class GeoObject

java.lang.Object
cn.mapway.geo.geometry.GeoObject
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Serializable
Direct Known Subclasses:
GeoCollection, GeoFeature, GeoFeatures, GeoLine, GeoLines, GeoPoint, GeoPoints, GeoPolygon, GeoPolygons

public class GeoObject extends Object implements Serializable, com.google.gwt.user.client.rpc.IsSerializable
GeoObject
Author:
zhangjianshe@gmail.com
See Also:
  • Field Details

  • Constructor Details

    • GeoObject

      public GeoObject()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
    • asGeoPoint

      public GeoPoint asGeoPoint()
    • getSrid

      public Integer getSrid()
    • setSrid

      public void setSrid(int epsgId)
    • setCrsWgs84

      public void setCrsWgs84()
    • getCrsString

      protected String getCrsString()
    • getExtend

      public GeoExtend getExtend()
    • center

      public GeoPoint center()
    • asGeoPoints

      public GeoPoints asGeoPoints()
    • asGeoLine

      public GeoLine asGeoLine()
    • asGeoLines

      public GeoLines asGeoLines()
    • asGeoPolygon

      public GeoPolygon asGeoPolygon()
    • asGeoPolygons

      public GeoPolygons asGeoPolygons()
    • asGeoFeature

      public GeoFeature asGeoFeature()
    • asGeoFeatures

      public GeoFeatures asGeoFeatures()
    • asGeoCollection

      public GeoCollection asGeoCollection()
    • isEmpty

      public boolean isEmpty()
    • toGeoJson

      public String toGeoJson()
    • createFromGeoJson

      public static GeoObject createFromGeoJson(String geojson)
      根据GeoJson对象创建
      Parameters:
      geojson -
      Returns: