Returns a Terraformer.Feature for the Feature at index in the features array. The function will be called with feature, index and coordinates. Primitive () var featurecollection2 = new Terraformer. This will return a Terraformer.Primitive with the same type as your GeoJSON object. You create a new Terraformer.Primitive object by passing it a valid GeoJSON Object. There is a Primitive for every type of GeoJSON object, plus a Circle Primitive which represents a circle as a polygon. Converting a GeoJSON object into a Terraformer Primitive will allow you use convenience methods like point.within(polygon).Įvery Primitive inherits from the Terraformer.Primitive base class, thus all other Primitives share the Terraformer.Primitive methods. Each life form has specific requirements and provides strategic benefits.Terraformer Primitives are JavaScript objects that map directly to their GeoJSON couterparts.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |