[GRASS-user] v.in.ogr with new location doesn't import my data

Anna Petrášová kratochanna at gmail.com
Wed Feb 18 06:28:19 PST 2015


On Wed, Feb 18, 2015 at 7:07 AM, G. Allegri <giohappy at gmail.com> wrote:

> I forgot to say that I'm using grass 7 on a Ubuntu machine
>
> 2015-02-18 13:06 GMT+01:00 G. Allegri <giohappy at gmail.com>:
>
>> I'm using v.in.ogr with the location option. The new location is created
>> correctly, and the projection is set to the one defined by my shapefile's
>> .prj file, but no data is imported. The mapset is empty.
>>
>> The command line reports the following message:
>> WARNING: All available OGR layers will be imported into vector map
>>             <centroidi_province>
>> Location <workLocation> created
>>
>> The same command launched in a preexisting location (and without the
>> location option) works fine and the data is correctly imported.
>>
>
Hm, it is working for me in G70 and G71 (Ubuntu as well):
v.in.ogr
input=/home/anna/grassdata/data/shoreline_oceanfront_1998/Shoreline_Oceanfront_1998.shp
output=test location=testLoc

Location <testLoc> created
Check if OGR layer <Shoreline_Oceanfront_1998> contains polygons...
 100%
Importing 21 features (OGR layer <Shoreline_Oceanfront_1998>)...
 100%
-----------------------------------------------------
Building topology for vector map <test at PERMANENT>...
Registering primitives...
67 primitives registered
19183 vertices registered
Building areas...
 100%
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
 100%
Number of nodes: 128
Number of primitives: 67
Number of points: 0
Number of lines: 67
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0

Anna


>> giovanni
>>
>> --
>> Giovanni Allegri
>> http://about.me/giovanniallegri
>> Twitter: https://twitter.com/_giohappy_
>> blog: http://blog.spaziogis.it
>> GEO+ geomatica in Italia http://bit.ly/GEOplus
>>
>
>
>
> --
> Giovanni Allegri
> http://about.me/giovanniallegri
> Twitter: https://twitter.com/_giohappy_
> blog: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150218/a1fd7df5/attachment.html>


More information about the grass-user mailing list