[Mapserver-users] SVG Output

Steve Lime steve.lime at dnr.state.mn.us
Tue Nov 25 14:56:09 EST 2003


There are 2 new additions:

  - In query templates there is a new tag called shpxy. It allows for
ad hoc access to the coordinates for any returned shape. There are a
bunch of tag attributes that allow you to structure the output in a
variety of ways. I'll have to check the source and post a summary of
those. In practice you could then setup a query template that looked
like:

<path id="[shpidx]" d="M [shpxy] ">
  ... more svg stuff if necessary ...
</path>

and then build up a svg document with the addition of headers and
footers.

 - In the map file you can now set an arbitrary MIME-TYPE for query
output using a web object parameter called QUERYFORMAT. So, for example
you might do:

  QUERYFORMAT "image/svg+xml"

I'm not real happy with this mechanism, I'd rather use OUTPUTFORMAT
blocks, but for now this works just fine.

4.1 will be released as 4.2 after the first of the year. Don't know
exactly when. The CVS code is VERY stable so I'd be interested in
feedback.

Steve


>>> Keith Campbell <scoota at supanet.com> 11/24/2003 3:02:30 PM >>>
Steve,

Thanks for your reply.

Is there any more information available on these new features? Any idea

on when 4.1 is available?

Keith

Steve Lime wrote:

>The 4.1 version has a few new features that should allow the creation
of
>SVG using traditional query templates. There are new capabilities to
>change output MIME types and to extract feature coordinates into
>templates. Because SVG is text-based this may work quite well.
>
>Steve
>
>Stephen Lime
>Data & Applications Manager
>
>Minnesota DNR
>500 Lafayette Road
>St. Paul, MN 55155
>651-297-2937
>
>  
>
>>>>Keith Campbell <scoota at supanet.com> 11/17/2003 5:45:01 PM >>>
>>>>        
>>>>
>Just trying to find out what MapServer will do:-
>
>In addition to rendering images to the client, it will output GML 
>(through the WFS support) and also SWF (MING) but not SVG - is this 
>correct? Any likelihood of SVG in future?
>
>Thanks,
>
>Keith
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu 
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu 
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
>
>  
>

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list