[mapserver-users] Rendering VMAP1 & VMAP2 in VPF Format

Lars Schylberg lars.schylberg at blixtmail.se
Fri Jan 29 11:18:09 PST 2016


You can do automatic import of data and generate mapserver layers 
automatically.
The procedure is to do scripts ( python or bash in my case).  I usually 
run ogrinfo a couple of times in the script.
First, write the header part of the mapfile with extent for all data.
Then I examine the individual object types with ogrinfo -sql ... and 
make point, line and polygon layers depending on what I find.
One thing to remember is that mapserver doesn't like layers that don't 
exist. So avoid such layers or create dummy data.

If You have many vector files, they can be assembled softly with either 
ogrtindex or vrt:s
Generally VRT:s are more flexible.  The VRT can be used directly in 
mapserver as data.

Writing VRT:s can also be a good way to really merge and process data in 
a smart way with ogr2ogr.

Lars Schylberg

Den 2016-01-29 kl. 16:31, skrev Francis, Mike:
>
> Thanks, I was converting to shape files for performance reasons and to 
> merge multiple vector maps of the same type into one shape file.   For 
> my application the user imports one or more vector maps and software 
> has to automatically generate the layers for rendering them.  I guess 
> a better question would have been if there is an easy way to rendering 
> a lot of separate vector maps in map server via an automated software 
> process.
>
> Thanks again
>
> Mike
>
> *From:* Michael Smith [mailto:michael.smith.erdc at gmail.com]
> *Sent:* Friday, January 29, 2016 3:32 PM
> *To:* Francis, Mike <mfrancis at srcinc.com>; 
> 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org>
> *Subject:* Re: [mapserver-users] Rendering VMAP1 & VMAP2 in VPF Format
>
> Notice: This message originated outside of SRC.
>
> You don't have to convert it (although it may bring you performance to 
> do so). If your GDAL contains the OGDI driver, you can read it 
> natively (http://www.gdal.org/drv_ogdi.html)
>
> Mike
>
> *From: *mapserver-users <mapserver-users-bounces at lists.osgeo.org 
> <mailto:mapserver-users-bounces at lists.osgeo.org>> on behalf of 
> "Francis, Mike" <mfrancis at srcinc.com <mailto:mfrancis at srcinc.com>>
> *Date: *Friday, January 29, 2016 at 8:55 AM
> *To: *"'mapserver-users at lists.osgeo.org 
> <mailto:%27mapserver-users at lists.osgeo.org>'" 
> <mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>>
> *Subject: *[mapserver-users] Rendering VMAP1 & VMAP2 in VPF Format
>
>     Good Morning,
>
>     What is the easiest way to load Vector Maps (VMAP1 & VMAP2) into
>     map server.  From what I have read vector maps need to be
>     converted into a shape file and then a layer needs to be defined
>     for that shape file.  I have created a script that takes set of
>     VPF files and creates a point, line, area, and text shape file. 
>     From that point I am able to create a layer that is able to render
>     lines and points. I have not been able to get areas and text
>     vector data to display anything.   Does a layer require a special
>     property to render area and text?  Is there an easier way to
>     render VPF data?
>
>     Thanks,
>
>     Mike Francis
>
>     _______________________________________________ mapserver-users
>     mailing list mapserver-users at lists.osgeo.org
>     <mailto:mapserver-users at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160129/ec8a22c4/attachment.html>


More information about the mapserver-users mailing list