<P>Hi Frank,
<P>There was some problem to use the ogr2ogr under windows. The command was unable to find the datasource [Unable to open datasource ] :-( joined the commands below.
<P>I am also not quite sure how can I make sure that the dbf file contains certain columns- such as code ISO, country names, region names.
<P>.\v0soa\vmaplv0\soamafr is the relative path of the data sources</P>
<P>soamer is at the same level as dht. and lat. files<BR></P>
<P>T:\Projects\Analytix\02 Utils\Nima>ogr2ogr -f "ESRI Shapefile" polbnda.shp .\v0s<BR>oa\vmaplv0\soamafr<BR>FAILURE:<BR>Unable to open datasource `.\v0soa\vmaplv0\soamafr' with the following drivers.<BR> -> ESRI Shapefile<BR> -> UK .NTF<BR> -> SDTS<BR> -> TIGER<BR> -> IHO S-57 (ENC)<BR> -> MapInfo File<BR> -> DGN<BR> -> GML<BR> -> AVCBin<BR> -> OGDI<BR> -> FMEObjects Gateway
<P>Many thanks </P>
<P>Emmanuelle<BR>-----Original Message-----<BR>From: Frank Warmerdam [mailto:warmerdam@pobox.com] <BR>Sent: Saturday, November 23, 2002 11:32 AM<BR>To: woodbri@swoodbridge.com<BR>Cc: Mapserver-Users<BR>Subject: Re: [mapserver-users] vmap0 to shape file<BR><BR><BR>woodbri@swoodbridge.com wrote:<BR>> OK, I tried this, if you don't have the xvt libraries and includes it<BR>> will not be easy and will only be fun if you like pain and headaches.<BR>> <BR>> Frank,<BR>> Does ogr2ogr support converting VPF to shapefiles?<BR>> What is the command syntax?<BR>> What are the limits on conversion?<BR><BR>Steve,<BR><BR>Yes, ogr2ogr can be used to translate VPF to shapefile, if you have a<BR>build with OGDI support (such as the OpenEV_FW binary builds). For<BR>instance, to extract the political boundaries you might do this:<BR><BR>warmerda@gdal[589]% ogr2ogr polbnda.shp<BR>gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer<BR>'polbnda@bnd(*)_area'<BR>warmerda@gdal[590]% ls -l polbnda*<BR>-rw-r--r-- 1 warmerda users 1052287 Nov 22 11:58 polbnda.dbf<BR>-rw-r--r-- 1 warmerda users 327 Nov 22 11:57 polbnda.prj<BR>-rw-r--r-- 1 warmerda users 10335532 Nov 22 11:58 polbnda.shp<BR>-rw-r--r-- 1 warmerda users 85980 Nov 22 11:58 polbnda.shx<BR><BR>In the dataset name 'gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer' the<BR>gltp:/vrf part is not really in the filesystem. The VPF data was at<BR>/usr4/mpp1/v0noa. The "noamer" directory should be at the same level as<BR>the dht. and lat. files.<BR><BR>The resulting political boundaries seem to include a "nam" attribute<BR>with the state names/province names. Not too sure about namtional level<BR>boundaries. I couldn't browse around in the data very easily since it<BR>was still fairly large.<BR><BR>The limits? I'm not too sure what issues you will run into. The data<BR>model is VPF as exposed through the OGDI VPF (vrf) driver.<BR><BR>Best regards,<BR><BR>-- <BR>---------------------------------------+--------------------------------<BR>---------------------------------------+------<BR>I set the clouds in motion - turn up | Frank Warmerdam,<BR>warmerdam@pobox.com<BR>light and sound - activate the windows | http://pobox.com/~warmerdam<BR>and watch the world go round - Rush | Geospatial Programmer for Rent<BR><BR><BR></P><p><br><hr size=1><a href="http://fr.mail.yahoo.com">Yahoo! Mail</a> -- Une adresse @yahoo.fr gratuite et en français !<br>