Re: [Geoserver-users] Using SVG image as Mark not resizing

2016-09-20 Thread Andrea Aime
Hi,
while I never built a SVG icon myself, looking at samples around the net it
seems
Inkscape and Adobe Illustrator are two popular choices

Cheers
Andrea


On Tue, Sep 20, 2016 at 10:14 AM, Derek Watling  wrote:

> Hi Andrea
>
> After some experimentation I can see the viewbox is the issue. This is my
> first time using SVG and I have blindly tried multiples of the exisisting
> viewport, but don't know what the actual values should be. Do you have any
> reccomendation for an SVG editor?
>
> Thank you
> Derek
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Using-SVG-image-as-Mark-not-resizing-tp5286825p5286836.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> 
> --
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

---
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Using SVG image as Mark not resizing

2016-09-20 Thread Derek Watling
Hi Andrea

After some experimentation I can see the viewbox is the issue. This is my
first time using SVG and I have blindly tried multiples of the exisisting
viewport, but don't know what the actual values should be. Do you have any
reccomendation for an SVG editor?

Thank you
Derek



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Using-SVG-image-as-Mark-not-resizing-tp5286825p5286836.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Using SVG image as Mark not resizing

2016-09-20 Thread Andrea Aime
Hi Derek,
a SVG normally declares its bounds in the header, often using a viewBox
attribute:

http://jonibologna.com/svg-viewbox-and-viewport/

May it be that your SVG have a viewbox selecting just a part of it?

Cheers
Andrea


On Tue, Sep 20, 2016 at 9:27 AM, Derek Watling  wrote:

> I am running GeoServer 2.9.0 and using CSS styling. I set up my style to
> render a mark which sizes and positions depending on the zoom level.
> Originally I used a PNG for the mark, and once I was happy with the result
> I
> created a SVG using Inkscape. When I replace the PNG with the SVG it does
> not appear to resize the image according to mark-size, but rather uses the
> top left corner of the SVG. The SVG is fairly big relative to final size it
> is rendered.
>
> Any help / considerations on using SVG would be appreciated.
>
> As rendered using PNG:
> 
>
> As rendered unsing SVG:
> 
>
> SVG viewed in Firefox:
> 
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Using-SVG-image-as-Mark-not-resizing-tp5286825.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> 
> --
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

---
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Using SVG image as Mark not resizing

2016-09-20 Thread Derek Watling
I am running GeoServer 2.9.0 and using CSS styling. I set up my style to
render a mark which sizes and positions depending on the zoom level.
Originally I used a PNG for the mark, and once I was happy with the result I
created a SVG using Inkscape. When I replace the PNG with the SVG it does
not appear to resize the image according to mark-size, but rather uses the
top left corner of the SVG. The SVG is fairly big relative to final size it
is rendered.

Any help / considerations on using SVG would be appreciated.

As rendered using PNG:
 

As rendered unsing SVG:
 

SVG viewed in Firefox:
 





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Using-SVG-image-as-Mark-not-resizing-tp5286825.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users