Opened 10 years ago

Closed 10 years ago

#878 closed defect (invalid)

v.external not working on WinGrass

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 6.4.0
Component: Vector Version: svn-releasebranch64
Keywords: v.external, vector, wingrass Cc:
CPU: x86-32 Platform: MSWindows Vista

Description

WinGrass r40456 on WinVista32 creation the location with a projected dataset (10mpopulatedplaces.shp) data http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/10m-populated-places.zip => creation of the location ok

v.in.ogr dsn=C:\temp\10m_populated_places\10mpopulatedplaces.shp output=import  
Die Projektionsinformationen des Eingabedatensatzes und der aktuellen Location scheinen übereinzustimmen.
Layer: 10mpopulatedplaces
Importiere 6599 Objekte der Karte...
-----------------------------------------------------
Building topology for vector map <import>...
Registering primitives...
   60006599 primitives registered
6599 vertices registered
Building areas...
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
Number of nodes: 6599
Number of primitives: 6599
Number of points: 6599
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0

=> import ok

v.external dsn=C:\temp\10m_populated_places\10mpopulatedplaces.shp output=vlinkext
Data source contains 1 layers:
10mpopulatedplaces

g.list type=vect

----------------------------------------------
vector files available in mapset <data>:
import
----------------------------------------------

=> link to external not working, because there is no link, but there is also no error-message with v.external

g.gisenv --v                                                                    
GISDBASE='C:/gisdata/grassdata';
LOCATION_NAME='populatedplaces';
MAPSET='data';
GRASS_GUI='wxpython';
DEBUG='3';

(Mon Jan 18 00:21:23 2010)                                                      
v.external dsn=C:\temp\10m_populated_places\10mpopulatedplaces.shp output=vlinkext2
Data source contains 1 layers:
10mpopulatedplaces
(Mon Jan 18 00:21:24 2010) Command finished (0 sec)

g.list type=vect                                                                
----------------------------------------------
vector files available in mapset <data>:
import

Change History (6)

comment:1 in reply to:  description Changed 10 years ago by hellik

Replying to hellik:

WinGrass r40456 on WinVista32

tested within the nc-sample-dataset

v.out.ogr input=hospitals@PERMANENT type=point dsn=C:\temp\ncdata olayer=exporthospital
Exportiere 160 Punkte/Linien...
160 Feature geschrieben.
ogrinfo:
INFO: Open of `exporthospital.shp'
      using driver `ESRI Shapefile' successful.
Layer name: exporthospital
Geometry: Point
Feature Count: 160
Extent: (156998.171862, 20235.564401) - (914347.874861, 308097.937401)
Layer SRS WKT:
PROJCS["Lambert Conformal Conic",
    GEOGCS["grs80",
        DATUM["North_American_Datum_1983",
            SPHEROID["Geodetic_Reference_System_1980",6378137,298.257222101]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Lambert_Conformal_Conic_2SP"],
    PARAMETER["standard_parallel_1",36.16666666666666],
    PARAMETER["standard_parallel_2",34.33333333333334],
    PARAMETER["latitude_of_origin",33.75],
    PARAMETER["central_meridian",-79],
    PARAMETER["false_easting",609601.22],
    PARAMETER["false_northing",0],
    UNIT["Meter",1]]
v.external dsn=C:\temp\ncdata\exporthospital.shp output=testvexternal           
Data source contains 1 layers:
exporthospital

no testvexternal in the vect-list either any error-message of v.external

comment:2 Changed 10 years ago by neteler

You need to specify also the layer:

v.external dsn=C:\temp\ncdata\exporthospital.shp output=testvexternal layer=exporthospital

comment:3 in reply to:  2 ; Changed 10 years ago by hellik

Replying to neteler:

You need to specify also the layer:

v.external dsn=C:\temp\ncdata\exporthospital.shp output=testvexternal layer=exporthospital

to specify the layer is in the "optional"-tab of the v.external, so maybe this option should go into "required"?

comment:4 in reply to:  3 ; Changed 10 years ago by neteler

Priority: criticalnormal

Replying to hellik:

Replying to neteler:

You need to specify also the layer:

v.external dsn=C:\temp\ncdata\exporthospital.shp output=testvexternal layer=exporthospital

to specify the layer is in the "optional"-tab of the v.external, so maybe this option should go into "required"?

That's unfortunately not possible, since

v.external help
...
   layer   OGR layer name. If not given, available layers are printed only.

If you make it a requirement, you can no longer print the layer names.

I'm afraid that this is "invalid" although I understand the user perception. Same thing as for r.proj/v.proj etc.

comment:5 Changed 10 years ago by hamish

Keywords: wingrass added; windows removed

please use the "wingrass" keyword for MS Windows bugs so the errata page can grab them. AFAIU there is no "OR" to work with for Platform so the keyword is the best way to group them.

  • propsal to fix "required" tab problem in #886.

thanks, Hamish

comment:6 in reply to:  4 Changed 10 years ago by hellik

Resolution: invalid
Status: newclosed

Replying to neteler: [...]

I'm afraid that this is "invalid" although I understand the user perception. Same thing as for r.proj/v.proj etc.

v.external itself is working with defining the layer, so I'm closing the report. but I'm support:

propsal to fix "required" tab problem in #886.

Helmut

Note: See TracTickets for help on using tickets.