Type Mapping¶
When creating some GeoScript objects (e.g. process.Process()
and
feature.Field()
objects), it is necessary to provide type information for
converting values between Java and JavaScript. The list below describes the
mapping between JavaScript types and the corresponding Java types.
String Identifier |
JavaScript Type |
Java Type |
---|---|---|
|
Boolean |
java.lang.Boolean |
|
String |
java.lang.String |
|
Number |
java.lang.Double |
|
Number |
java.lang.Double |
|
Number |
java.lang.Integer |
|
Number |
java.lang.Short |
|
Number |
java.langFloat |
|
Number |
java.lang.Long |
|
Number |
java.math.BigDecimal |
|
Date |
java.sql.Date |
|
com.vividsolutions.jts.geom.Geometry |
|
|
com.vividsolutions.jts.geom.Point |
|
|
com.vividsolutions.jts.geom.LineString |
|
|
com.vividsolutions.jts.geom.Polygon |
|
|
com.vividsolutions.jts.geom.MultiPoint |
|
|
com.vividsolutions.jts.geom.MultiLineString |
|
|
com.vividsolutions.jts.geom.MultiPolygon |
|
|
com.vividsolutions.jts.geom.GeometryCollection |
|
|
org.geotools.geometry.jts.ReferencedEnvelope |
|
|
org.geotools.feature.FeatureCollection |
|
|
org.opengis.filter.Filter |
|
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
|
|
Date |
java.sql.Time |
|
Date |
java.util.Date |
|
Date |
java.sql.Timestamp |
|
String |
java.net.URI |