[GRASS-dev] [bug #5176] (grass) v.in.ogr: segfault when a full
path to dsn is missing
Markus Neteler
neteler at itc.it
Tue Oct 3 07:57:11 EDT 2006
On Tue, Oct 03, 2006 at 01:37:21PM +0200, Maciek Sieczka via RT wrote:
> hamish_nospam at yahoo.com wrote (Tue, Oct 3 2006 05:47:19):
>
> > Maciek Sieczka via RT wrote:
>
> >> $ v.in.ogr dsn=shorter/
>
> > what if you leave off the trailing "/" in the dsn?
>
> It doesn't change anything. Still a segfault if
> "dsn=force_lrconnect_cl_onlycat139" and no segfault if "dsn=shorter". Looks
> like the string length is the key.
I just made a test:
GRASS 6.3.cvs (spearfish60):~ > v.out.ogr roads dsn=myroads_12345678901234567890_test.shp olayer=roads
Exporting 825 points/lines...
825 features written
GRASS 6.3.cvs (spearfish60):~ > v.in.ogr myroads_12345678901234567890_test.shp out=myroads
A datum name nad27 (North_American_Datum_1927) was specified without transformation parameters.
WARNING: Non-interactive mode: the GRASS default for nad27 is
towgs84=-22.000,157.000,176.000.
Projection of input dataset and current location appear to match.
Proceeding with import...
Layer: myroads_12345678901234567890_test
WARNING: Column name changed: 'cat' -> 'cat_'
-----------------------------------------------------
Building topology ...
825 primitives registered
...
This works.
Best is to use a debugger. See here how to do that with 'ddd':
http://grass.gdf-hannover.de/wiki/GRASS_Debugging#Using_DDD_.28gdb_graphical_frontend.29
It is fairly easy to handle.
Markus
More information about the grass-dev
mailing list