Thanks Re: [mapserver-users] vmap0 to shape file
Emmanuelle
bultee@yahoo.fr
Wed, 27 Nov 2002 10:42:00 +0100 (CET)
--0-609004388-1038390120=:16243
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Thank you for your help. We'll try again and I have very much appreciated all the help I got from the mapserver discussion group. Could you advise me where I could post or a friend of mine could post this kind of questions.
Many thanks again,
Emmanuelle
Frank Warmerdam <warmerdam@pobox.com> wrote: Emmanuelle wrote:
> Hi Frank,
>
> 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.
>
> 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.
>
> .\v0soa\vmaplv0\soamafr is the relative path of the data sources
>
> soamer is at the same level as dht. and lat. files
>
> T:\Projects\Analytix\02 Utils\Nima>ogr2ogr -f "ESRI Shapefile"
> polbnda.shp .\v0s
> oa\vmaplv0\soamafr
Emmanuelle,
You need the gltp:/vrf/ prefix on the name. You should also use a full
path to the dataset, not a relative path. Relative paths may not work
due to the nature of OGDI. I would also note that Shapefiles are the
default output format, so you don't need to select it with -f.
eg.
ogr2ogr polbnda.shp gltp:/vrf/.../v0soa/vmaplv0/soamfr
Actually, as previously noted, you will also need to select the layer
you want and rename that layer to polbnda. Please refer back to my earlier
message where I detailed how to do this.
As for what columns appear in the .dbf file ... you get whatever you get.
The only thing you can control is to force it to discard some stuff you
don't need.
PS. I don't think this discussion belongs on the mapserver list.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
---------------------------------
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
--0-609004388-1038390120=:16243
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<P>Thank you for your help. We'll try again and I have very much appreciated all the help I got from the mapserver discussion group. Could you advise me where I could post or a friend of mine could post this kind of questions.
<P>Many thanks again,
<P>Emmanuelle
<P> <B><I>Frank Warmerdam <warmerdam@pobox.com></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Emmanuelle wrote:<BR>> Hi Frank,<BR>><BR>> There was some problem to use the ogr2ogr under windows. The command was<BR>> unable to find the datasource [Unable to open datasource ] :-( joined<BR>> the commands below.<BR>><BR>> I am also not quite sure how can I make sure that the dbf file contains<BR>> certain columns- such as code ISO, country names, region names.<BR>><BR>> .\v0soa\vmaplv0\soamafr is the relative path of the data sources<BR>><BR>> soamer is at the same level as dht. and lat. files<BR>><BR>> T:\Projects\Analytix\02 Utils\Nima>ogr2ogr -f "ESRI Shapefile"<BR>> polbnda.shp .\v0s<BR>> oa\vmaplv0\soamafr<BR><BR>Emmanuelle,<BR><BR>You need the gltp:/vrf/ prefix on the name. You should also use a full<BR>path to the dataset, not a relative path. Relative paths may not work<BR>due to the nature of OGDI. I would also note that Shap!
efiles are the<BR>default output format, so you don't need to select it with -f.<BR><BR>eg.<BR><BR>ogr2ogr polbnda.shp gltp:/vrf/.../v0soa/vmaplv0/soamfr<BR><BR>Actually, as previously noted, you will also need to select the layer<BR>you want and rename that layer to polbnda. Please refer back to my earlier<BR>message where I detailed how to do this.<BR><BR>As for what columns appear in the .dbf file ... you get whatever you get.<BR>The only thing you can control is to force it to discard some stuff you<BR>don't need.<BR><BR>PS. I don't think this discussion belongs on the mapserver list.<BR><BR>Best regards,<BR><BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | Frank Warmerdam, 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></BLOCKQUOTE><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>
--0-609004388-1038390120=:16243--