[GRASS-dev] Re: [grass-code I][394] scripts using g.message fail
if message contains "="
Agustin Diez Castillo
Agustin.Diez at uv.es
Wed May 9 07:48:53 EDT 2007
I got errors (thousands of them) in r.tileset when trying r.in.wms
output=elevation_meters mapserver=http://wms.jpl.nasa.gov/wms.cgi
layers=us_ned styles=real -o
For instance
Sorry, <(142585.01085156029416302431 > 143102.29050826436668412227) *
142585.01085156029416302431 + (143102.29050826436668412227 >> is not
a valid parameter
/Applications/GRASS-6.3.app/Contents/Resources/scripts/r.tileset:
line 436: 26255 Segmentation fault g.message "$2"
In occasion even the g.message gui is launched.
On May 9, 2007, at 1:02 PM, Hamish wrote:
> Markus Neteler wrote:
>> I observed a similar problem in my new v.in.wfs script
>> (get from http://mpa.itc.it/markus/grass63/): The WFS URL is
>> disliked by g.parser. I worked around this with ugly hacks but
>> I think that we need a new parameter type which accepts chars
>> such as '=', '&' and so forth. I used file,file,file in v.in.wfs
>> but would prefer something else.
>
>
> It works fine for me with the attached changes.
>
> * you can't use g.message outside of grass;
> ## g.message "..." >&2 ## is redundant
> * be pedantic about quoting
>
>
> G63> ./v.in.wfs \
> wfs="http://mapserver.gdf-hannover.de/cgi-bin/grassuserwfs?
> REQUEST=GetF\
> eature&SERVICE=WFS&VERSION=1.0.0" out=wfs_test
>
> Over-riding projection check.
> Proceeding with import...
> Layer: myns:GRASS_users
> WARNING: Column name changed: 'myns:ogc_fid' -> 'myns_ogc_fid'
> WARNING: Column name changed: 'myns:name' -> 'myns_name'
> WARNING: Width for column 'myns_name' set to 255 (was not specified by
> OGR), some strings may be truncated!
> WARNING: Column name changed: 'myns:company' -> 'myns_company'
> WARNING: Width for column 'myns_company' set to 255 (was not specified
> by OGR), some strings may be truncated!
> Importing map 786 features...
> -----------------------------------------------------
> Building topology ...
> 786 primitives registered
> Building areas: 100%
> 0 areas built
> 0 isles built
> Attaching islands:
> Attaching centroids: 100%
> Topology was built.
> Number of nodes : 784
> Number of primitives: 786
> Number of points : 786
> Number of lines : 0
> Number of boundaries: 0
> Number of centroids : 0
> Number of areas : 0
> Number of isles : 0
> Vector points map <wfs_test> imported from WFS.
>
> #silly test
> G63> v.db.select wfs_test where="myns_name ~ 'Markus'"
> cat|myns_ogc_f|myns_name|myns_compa
> 676|2|Markus Neteler|ITC-irst (Povo)
> 722|201|Markus Spring|RGU München
> 723|202|Markus Spring|RGU München
> G63> d.vect wfs_test cat=676 col=green width=2
>
>
> We should (finally) add a flag to v.db.select to allow output of x,y,z
> info, or probably better* add to v.out.ascii where= and column(s)=
> options to output DB values. There is my v.out.ascii.db, but it's a
> slow hack.
>
> [*] single cat can be linked to multiple vector features
>
>
> Hamish
> <v.in.wfs.diff>
> <v.in.wfs.NEW>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20070509/83b17638/attachment.html
More information about the grass-dev
mailing list