GeoJSON (*.json;*.txt)

GeoJSON is a format for encoding a variety of geographic data structures. A GeoJSON object may represent a geometry, a feature, or a collection of features. GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features.

A complete GeoJSON data structure is always an object (in JSON terms). In GeoJSON, an object consists of a collection of name/value pairs -- also called members. For each member, the name is always a string. Member values are either a string, number, object, array or one of the literals: "true", "false" and "null". An array consists of elements where each element is a value as described above.

This text has been taken from http://www.geojson.org/geojson-spec.html

This is a Memory Dataset.

The following example GeoJSON is for a simple Polygon item:

{
    "type": "FeatureCollection",
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:4326"
        }
    },
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            25.0974512743628,
                            86.8965517241379
                        ],
                        [
                            -81.2293853073463,
                            86.8965517241379
                        ],
                        [
                            -81.2293853073463,
                            15.1124437781109
                        ],
                        [
                            25.0974512743628,
                            15.1124437781109
                        ],
                        [
                            25.0974512743628,
                            86.8965517241379
                        ]
                    ]
                ]
            },
            "properties": {
                "Description": "Polygon",
                "Item ID": 1,
                "Item class": "Polygon",
                "Origin X": -3124289.15689667,
                "Origin Y": 5677794.71782184,
                "Origin Z": 0
            }
        }
    ]
}

Arguments to Export API Method

Compatibility:


See full list of Export Formats

Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).