I don't believe you can muck with the SVG color since SVG can carry multiple 
elements and colors. That complexity doesn't map very well to a single color 
value in a styleObj. It's probably best to consider SVG as immutable, same as 
an image symbol. You can use truetype fonts (or vector symbols) if you want 
something scaleable where you can alter color.

--Steve

From: Brian Stice [mailto:[email protected]]
Sent: Thursday, June 27, 2019 12:35 PM
To: Lime, Steve D (MNIT) <[email protected]>; 
[email protected]
Subject: Re: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hi Steve,

Thanks for the tip. I used the link you provided and was able to get the SVG 
symbol sizing to a reasonable level. I appreciate the help.

I did have another question, maybe you know this. In the most recent version 
MAPSERVER, are we able to change the color of SVGs using the COLOR parameter? 
It does not seem that we are able to do so. I found a couple topics on the 
forum but they were from a few years ago. I am not sure if anything has changed 
or if I am missing something.  Maybe you know the answer to this as well? 
Thanks for your help!



On Tue, Jun 25, 2019, at 1:50 PM, Lime, Steve D (MNIT) wrote:
Hi Brian: Welcome! My guess that the SVG file might be "sized" to whatever page 
size you had defined in Inkscape and your elements may be significantly smaller 
than that. Basically I'm wondering if there's a bunch of empty space that is 
also being scaled and your actual symbol would appear proportionately smaller 
as well. If this is the case it looks like you can do things in Inkscape to 
remove that space...

  
https://graphicdesign.stackexchange.com/questions/21635/getting-rid-of-whitespace-in-inkscape

--Steve

-----Original Message-----
From: mapserver-users [mailto:[email protected]] On 
Behalf Of Brian Stice
Sent: Monday, June 24, 2019 2:46 PM
To: [email protected]<mailto:[email protected]>
Subject: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

Hello,

I am fairly new with MapServer and was wondering if anyone had any 
recommendations or guidelines of sizing point symbol SVG's?

I created some SVG symbols in Inkscape. When I load them into MapServer and 
choose SIZEUNITS feet, I have to set the actual symbol size to around 500 for 
these to show up in a Map. My understanding is that the SIZEUNIT parameter 
changes the way the symbol rendered in real world space (in my case feet rather 
than pixels). I am not sure if this has to do with how the SVG is sized in 
Inkscape or if there is an issue with using SIZEUNITS and SVGs together in 
MapServer. I looked at the MAPSERVER documentation online and did not have much 
luck.

I have tried a few things including setting the MIN and MAX Size with no luck. 
Any help or pointers would be awesome.

Thanks for your help!

Sincerely,

**Brian Stice ***GISP****
**Project Implementation Manager | PeopleGIS*
500 West Cummings Park, Suite 3900
Woburn, MA 01801
P: 617.625.3608
www.peoplegis.com<http://www.peoplegis.com>


_______________________________________________
mapserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Brian Stice GISP
Project Implementation Manager | PeopleGIS
500 West Cummings Park, Suite 3900
Woburn, MA 01801
P: 617.625.3608
www.peoplegis.com<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.peoplegis.com&data=02%7C01%7Csteve.lime%40state.mn.us%7C79a47f9dda454b849b6a08d6fb25d42c%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636972537227731679&sdata=aiwCP6EoEA%2FLKsdLS7t%2FjTBmyXPNLSWSx%2ByidIxGmME%3D&reserved=0>

_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to