R: DXF in mapserver (was Re: [Mapserver-users] (no subject) )

Frank Warmerdam warmerdam at pobox.com
Wed Jul 7 12:09:11 EDT 2004


Daniele Margotti wrote:
> Frank,
> 
> my intent is, in fact, to produce DXF output (i.e., the user can
> download - in DXF format - currently shown map simply by clicking on an
> appropriate link that uses the DXF map, and so on).

Daniele,

Well then you are on the right track.

> Now I have MapServer 4.0.1, still not 4.2:
> <!-- MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7
> INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
> 
> I think I compiled MapServer without appropriate output support, isn't
> it?
> I also used gdal-1.1.9 (because MapServer compilation failed with
> gdal-1.2.0, but I don't remember the message error now).

My understanding is that no special configure/build options are required
for the DXF imagemap support but I suspect it doesn't work as well in
4.0.x.  I would strongly encourage you to upgrade to 4.2.x and GDAL 1.2.1.


> Two questions about gdal/ogr:
>  - http://www.remotesensing.org:16080/gdal/ogr/ogr_formats.html shows
> supported vector formats: why can't I see DXF?

Because OGR does not support DXF.  The imagemap/dxf support is not
implemented using DXF or any external DXF library.  It just uses lots
of fprintf() calls to produce appropriate DXF as far as I know.

>  - if I decide to install latest version of gdal, and then recompile
> MapServer, could I have problems since there is no more the
> \frmts\shapelib directory in the source tree? (I am however used to
> compile and install the full version of Geo-Shapelib, so there shouldn't
> be any problem...).

I think you will find the basic shapelib include file in
gdal/ogr/ogrsf_frmts/shape.  However, the "master" version of shapelib
no longer lives in the GDAL source tree.  I guess you would be best off
building Geo-Shapelib seperately.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the mapserver-users mailing list