[mapserver-users] ogr2ogr error

Seamus Thomas Carroll carrolls at unbc.ca
Mon Aug 12 18:06:39 PDT 2002


It turns out that the quotes around BC are not supported.  After this was 
pointed out I was able to run the command using,

ogr2ogr -where "PROV_CODE = 59" /home/carrolls/commhealth/bc_uep/ 
  /home/carrolls/commhealth/can_uep/canuep.shp


On Tue, 13 Aug 2002 Antti.Roppola at brs.gov.au wrote:

> Have you tried a process of elimination to find out
> what part of the command is causing the problems?
> 
> 	cp ../bc_uep/bcuep.shp .
> 	ogr2ogr -f "ESRI Shapefile" bcuep.shp canuep.shp
> 
> 	rm canuep.*
> 	ogr2ogr -f "ESRI Shapefile" ../bc_uep/bcuep.shp canuep.shp
> 
> 	rm canup.*
> 	ogr2ogr -where "Prov = 'BC'" bcuep.shp canuep.shp
> 
> 	etc. etc.
> 
> Antti
> 
> -----Original Message-----
> From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca]
> Sent: Tuesday, 13 August 2002 3:15 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] ogr2ogr error
> 
> 
> Hi,
> 
> I try running ogr2ogr and this is the result I keep getting.
> 
> carrolls:~/commhealth/can_uep> ogr2ogr -f "ESRI Shapefile" -where "Prov = 
> 'BC'" ../bc_uep/bcuep.shp canuep.shp
> ERROR 1: Syntax error, 2 extra tokens
> 
> I can't find any details on the error in the internet.  Does anyone have 
> anyideas on what the erro might be?
> 

-- 
Seamus Carroll




More information about the MapServer-users mailing list