[mapserver-users] Starange results- vmap0 to shape file
Emmanuelle
bultee@yahoo.fr
Tue, 26 Nov 2002 16:15:15 +0100 (CET)
--0-805296887-1038323715=:70186
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
At last we got some results but we got this message. Not quite sure what the libref@libref(*)_line.shp corresponds to. Can anybody help on this?
C:\>ogr2ogr polbnda.shp gltp:/vrf/v0soa/vmaplv0/soamafr
ERROR 4: Failed to open Shapefile `libref@libref(*)_line.shp'.
ERROR 1: Terminating translation prematurely after failed
translation of layer libref@libref(*)_line
Emmanuelle <bultee@yahoo.fr> 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
FAILURE:
Unable to open datasource `.\v0soa\vmaplv0\soamafr' with the following drivers.
-> ESRI Shapefile
-> UK .NTF
-> SDTS
-> TIGER
-> IHO S-57 (ENC)
-> MapInfo File
-> DGN
-> GML
-> AVCBin
-> OGDI
-> FMEObjects Gateway
Many thanks
Emmanuelle
-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam@pobox.com]
Sent: Saturday, November 23, 2002 11:32 AM
To: woodbri@swoodbridge.com
Cc: Mapserver-Users
Subject: Re: [mapserver-users] vmap0 to shape file
woodbri@swoodbridge.com wrote:
> OK, I tried this, if you don't have the xvt libraries and includes it
> will not be easy and will only be fun if you like pain and headaches.
>
> Frank,
> Does ogr2ogr support converting VPF to shapefiles?
> What is the command syntax?
> What are the limits on conversion?
Steve,
Yes, ogr2ogr can be used to translate VPF to shapefile, if you have a
build with OGDI support (such as the OpenEV_FW binary builds). For
instance, to extract the political boundaries you might do this:
warmerda@gdal[589]% ogr2ogr polbnda.shp
gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer
'polbnda@bnd(*)_area'
warmerda@gdal[590]% ls -l polbnda*
-rw-r--r-- 1 warmerda users 1052287 Nov 22 11:58 polbnda.dbf
-rw-r--r-- 1 warmerda users 327 Nov 22 11:57 polbnda.prj
-rw-r--r-- 1 warmerda users 10335532 Nov 22 11:58 polbnda.shp
-rw-r--r-- 1 warmerda users 85980 Nov 22 11:58 polbnda.shx
In the dataset name 'gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer' the
gltp:/vrf part is not really in the filesystem. The VPF data was at
/usr4/mpp1/v0noa. The "noamer" directory should be at the same level as
the dht. and lat. files.
The resulting political boundaries seem to include a "nam" attribute
with the state names/province names. Not too sure about namtional level
boundaries. I couldn't browse around in the data very easily since it
was still fairly large.
The limits? I'm not too sure what issues you will run into. The data
model is VPF as exposed through the OGDI VPF (vrf) driver.
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 !
---------------------------------
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
--0-805296887-1038323715=:70186
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<P>At last we got some results but we got this message. Not quite sure what the <A href="mailto:libref@libref(*)_line.shp">libref@libref(*)_line.shp</A> corresponds to. Can anybody help on this?
<P>C:\>ogr2ogr polbnda.shp gltp:/vrf/v0soa/vmaplv0/soamafr<BR>ERROR 4: Failed to open Shapefile <A href="mailto:`libref@libref(*)_line.shp'">`libref@libref(*)_line.shp'</A>.
<P>ERROR 1: Terminating translation prematurely after failed<BR>translation of layer <A href="mailto:libref@libref(*)_line">libref@libref(*)_line</A><BR>
<P> <B><I>Emmanuelle <bultee@yahoo.fr></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<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 po!
lbnda*<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></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-805296887-1038323715=:70186--