RAVE: Geo
GeoJson - Maps
Json consideration – spans exact
• Definition of the spans (use exact)
"dimensions":
[ { "scale":
{ "spans":
[ { "fit":"exact" } ]
}
},
{ "scale":
{ "spans":
[ { "fit":"exact" } ]
}
} ],
Json consideration – transforms and
projection
• Definition of the transforms and projection
"transforms":
[ { "type":"projection",
"projectionParameters":
{
"name":"mercator"
}
} ]
Types : simple, mercator, miller, winkelTripel, stereographic, cyclindrical
Json consideration – elements
• Definition of the elements as a polygon
"elements":
[
{
"type":"polygon",
Json consideration – resource
• Definition of the elements
"resource":
[
{
"id":"id1",
"type":"geo/json/text",
"URIs": [ "embedded:///resource/*[\"id\"=\"id1\"]/embeddedData" ],
"embeddedData":"{\"type\":\"FeatureCollection\",\"features\":[\r\n{\"typ
e\":\"Feature\",\"properties\":{\"name\":\"ALABAMA\",\"abbr\":\"AL\"},\
"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[[[88.071336,30.252340] ……..
}
],
Json consideration – resource
• MultiPolygon vs. Polygon
\"type\":\"MultiPolygon\",\"coordinates\":[[[[-10, 2], [-10, 3], [-9, 3], [-9, 2], [10, 2]]],[[[-12, 2], [-12, 3], [-11, 3], [-11, 2], [-12, 2]]]]
\"type\":\"Polygon\",\"coordinates\":[[[-10, 2], [-10, 3], [-9, 3], [-9, 2],
10, 2]]]
• Points are longitude, latitude or Y, X
[-
Json consideration – augment
• Definition of the augment
"augment": [ { "source": { "$ref":"id1" },
"dataKeys": [ { "$ref":"name" } ],
"sourceKeys": [ "name" ],
"method":"includeAllSource"
} ],
Issues – Feature Name
• Make sure the feature name is the same in the
data section, resource and augment
"fields": [ { "id":"name", "categories": [ " ALABAMA",
":"{\"type\":\"FeatureCollection\",\"features\":[\r\n{\"type\":\"Feature\",\"p
roperties\":{\"name\":\"ALABAMA\",\"abbr\":\"AL\"},\
"augment": [ { "source": { "$ref":"id1" },
"dataKeys": [ { "$ref":"name" } ],
"sourceKeys": [ "name" ],
"method":"includeAllSource"
} ],
Issues – Unique Data
• The data must be unique
The value should only occur once in the resource area – examples of issues
would be Las Vegas (New Mexico) and Las Vegas (Nevada)
GeoJson – Gradient
GeoJson – with Points
Json consideration – elements
• Two grammars are defined – polygon to draw
the shapes and point to draw the points
• Points are drawn in the center of the polygon
"elements":
[{
"type":"polygon",
},
{
"type":"point",
}]
GeoJson – with Points and Latitude
Longitude
Json consideration – elements
• Two grammars are defined – polygon to draw
the shapes and point to draw the points
• Points are drawn in the center of the polygon
"elements":
[{
"type":"polygon",
},
{
"type":"point",
}]
Json consideration – elements and
position
• Two grammars are defined – polygon to draw
the shapes and point to draw the points
• Points are drawn based on the latitude and
longitude (x, y)
"elements":
[ { "type":"polygon", …},
{
"type":"point",
"position": [ { "field": { "$ref":"flatitude } },
{ "field": { "$ref":"flongitude } } ],
}]
GeoJson - Cities
Json consideration – 2 data sets are
required
• Definition of the data
{
"id":"dataSet",
"fields": [ { "id" : "city" ……],
"rows": [ [ 0, 0 ] ]
},
{
"id":"stateData",
"fields": [ ….
],
"rows": [ [ 0, 0 ] ]
}
Json consideration – 2 resource
definitions
• Definition of the resource
"resource":
[ { "id":"state_resource",
"type":"geo/json/text",
"URIs": ["embedded:///resource/*[\"id\"=\"state_resource\"]/embeddedData"],
"embeddedData":"..."
},
{ "id":"city_resource",
"type":"geo/json/text",
"URIs": ["embedded:///resource/*[\"id\"=\"city_resource\"]/embeddedData"],
"embeddedData":"..."
} ],
Json consideration – augment
• Definition of the augment
"augment":
[ { "dataKeys": [ { "$ref":"state_name" } ],
"sourceKeys": [ "name" ],
"target": { "$ref":"stateData" },
"method":"includeAllSource",
"source": { "$ref":"state_resource" } },
{ "dataKeys": [ { "$ref":"cities" } ],
"sourceKeys": [ "name" ],
"target": { "$ref":"dataSet" },
"method":"includeAllSource",
"source": { "$ref":"city_resource" }
} ],
GeoJson - Regions
Json consideration – resource
• MultiPolygon vs. Polygon
\"type\":\"MultiPolygon\",\"coordinates\":[[[[-10, 2], [-10, 3], [-9, 3], [-9, 2], [10, 2]]],[[[-12, 2], [-12, 3], [-11, 3], [-11, 2], [-12, 2]]]]
\"type\":\"Polygon\",\"coordinates\":[[[-10, 2], [-10, 3], [-9, 3], [-9, 2],
10, 2]]]
• Points are longitude, latitude or Y, X
[-
Json consideration – resource
• MultiPolygon vs. Polygon
\"type\":\"MultiPolygon\",\"coordinates\":[[[[-10, 2], [-10, 3], [-9, 3], [-9, 2], [10, 2]]],[[[-12, 2], [-12, 3], [-11, 3], [-11, 2], [-12, 2]]]]
\"type\":\"Polygon\",\"coordinates\":[[[-10, 2], [-10, 3], [-9, 3], [-9, 2],
10, 2]]]
• Points are longitude, latitude or Y, X
[-
GeoJson – Facetted Charts
Json consideration – facetted charts
using a point
• Facetted charts are connected to a point
"elements":
[ {
"type":"polygon",
"data": { "$ref":"state_name" },
………….
},
{
"id":"facetElement",
"type":"point",
…………..
} ],
GeoJson – Custom Maps
Json consideration – setting of span to
image size
• Span size equals the image size
"dimensions": [ { "scale": {
"spans": [ { "min":0, "max":1024, "fit":"exact" } ]
}
},
{ "scale": {
"spans": [ { "min":0, "max":714, "fit":"exact" } ]
}
}]
Json consideration – overall chart size
= spans
• Size of the Chart
"size":
{
"width":1024,
"height":704
},
Convert Shape files
http://ogre.adc4gis.com/
http://www.mapshaper.org/
© Copyright 2026 Paperzz