[GRASS-user] Error when creating a location using v.in.ogr from a geojson file.
Panagiotis Mavrogiorgos
pmav99 at gmail.com
Thu Jan 21 15:14:59 PST 2016
Hi all,
I am trying to create a location by importing the following geojson file:
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": { "name": "urn:ogc:def:crs:EPSG::3358" }
},
"features": [
{
"type": "Feature",
"properties": { "cat": 1 },
"geometry": {
"type": "Point",
"coordinates": [ 638042.52336448605638,
223793.925233644869877, 0.0 ]
}
}
]
}
This is what I get:
GRASS 7.0.3svn (MyLoc):~/ > v.in.ogr -i location='foo_location'
input=~/reservoir_point.json --verbose
WARNING: All available OGR layers will be imported into vector map
<OGRGeoJSON>
Location <foo_location> created
ERROR: Syntax error in cell header
As you can see, the location gets created but then there is an ERROR. Can
anyone explain what is the problem in this case. Using a geojson file with
a different geometry type works just fine:
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": { "name": "urn:ogc:def:crs:EPSG::3358" }
},
"features": [
{
"type": "Feature",
"properties": { "cat": 1 },
"geometry": {
"type": "LineString",
"coordinates": [
[ 637714.48598130850587, 222910.747663551388541, 0.0 ],
[ 638484.112149532767944, 223453.271028037386714, 0.0 ],
[ 639026.635514018707909, 224197.663551401870791, 0.0 ],
[ 639152.803738317801617, 224803.271028037386714, 0.0 ]
]
}
}
]
}
I am using revision 67592.
all the best,
Panos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160122/959075a0/attachment.html>
More information about the grass-user
mailing list