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

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 created

The same command launched in a preexisting location (and without the location option) works fine and the data is correctly imported.

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

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@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 created

The same command launched in a preexisting location (and without the location option) works fine and the data is correctly imported.

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

On Wed, Feb 18, 2015 at 7:07 AM, G. Allegri <giohappy@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@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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Thanks Anna,
yuor example gave me the hint: I didn’t set the output parameter, which I thought could be obtained from the input dataset name.

giovanni

···

2015-02-18 15:28 GMT+01:00 Anna Petrášová <kratochanna@gmail.com>:

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

I forgot to say that I’m using grass 7 on a Ubuntu machine

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 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@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


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

2015-02-18 13:06 GMT+01:00 G. Allegri <giohappy@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 created

The same command launched in a preexisting location (and without the location option) works fine and the data is correctly imported.

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

Giovanni Allegri
http://about.me/giovanniallegri
Twitter: https://twitter.com/giohappy
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus