<HTML dir=ltr><HEAD><TITLE>Re: [postgis-devel] Nice diagrams</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText97067 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Here is a silly thought.  Why don't we use image magick? It can support both postscript and svg.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2><A href="http://www.imagemagick.org/Usage/draw/#svg">http://www.imagemagick.org/Usage/draw/#svg</A></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2> I tried these simple commands on the svg file that Gustavo provided using my image magick install and got the attached results.  Of course to get the postscript, you need ghostscript installed which I'm not sure how hard that is on Linux.  The windows binary already has the svg driver compiled in and ghostscript is a simple install on windows.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>convert drawing1.svg drawing1.png<BR>convert drawing1.svg drawing1.eps</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>The other nice thing about using imagemagick is that we can come up with some jazzy effect like Kevin's that we can apply to all the images to make them look consistent  - e.g </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><A href="http://www.imagemagick.org/Usage/advanced/#3d-logos-2">http://www.imagemagick.org/Usage/advanced/#3d-logos-2</A></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Thanks,</DIV>
<DIV dir=ltr>Regina</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> postgis-devel-bounces@postgis.refractions.net on behalf of Paul Ramsey<BR><B>Sent:</B> Fri 7/18/2008 4:23 PM<BR><B>To:</B> PostGIS Development Discussion<BR><B>Subject:</B> Re: [postgis-devel] Nice diagrams<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Plain images will be best for web-based docs. It would be nice to have<BR>vector sources, so that paper docs could have appropriately high<BR>quality versions. Does inkscape save to postscript? (This is why I was<BR>always so scared of doing images in the docs before... so many<BR>options! :)<BR><BR>P<BR><BR>On Fri, Jul 18, 2008 at 1:13 PM, Obe, Regina <robe.dnd@cityofboston.gov> wrote:<BR>> My IE7 just displays it as xml.  Firefox seems to load it fine.  Besides<BR>> plain png is less likely to crash someone's browser.<BR>><BR>> -----Original Message-----<BR>> From: postgis-devel-bounces@postgis.refractions.net<BR>> [<A href="mailto:postgis-devel-bounces@postgis.refractions.net">mailto:postgis-devel-bounces@postgis.refractions.net</A>] On Behalf Of Dane<BR>> Springmeyer<BR>> Sent: Friday, July 18, 2008 3:29 PM<BR>> To: PostGIS Development Discussion<BR>> Subject: Re: [postgis-devel] Nice diagrams<BR>><BR>> Gustavo,<BR>><BR>> Those graphics look good. It seems like it would be ideal to simple<BR>> load the svg's within the HTML page rather than have to depend upon<BR>> Inkscape (despite how much nicer they could look).<BR>><BR>> Do you have a sense about 1) the easiest way to generate styled svg<BR>> from postgis AsSvg(), and 2) if there are any limitations to consider<BR>> when using linked svg files within the Docbook PDF output?<BR>><BR>> Cheers,<BR>><BR>> Dane<BR>><BR>><BR>> On Jul 18, 2008, at 5:56 AM, Gustavo Henrique Sberze Ribas wrote:<BR>><BR>>> Hi,<BR>>><BR>>>> Does not SVG provide the required capabilities? I'm led to believe it<BR>>>> can be exported directly by a large number of packages. As long as it<BR>>>> supports vector objects with styles and object groups, it<BR>>>> should work fine.<BR>>><BR>>>  +1 for SVG. You don't even have to export it to a raster format, many<BR>>> browsers have built-in SVG support (like Opera, Mozilla).<BR>>><BR>>>  There's an open source SVG editor called Inkscape that's capable of<BR>>> doing<BR>>> drop shadow effects. I've attached a sample created with it for your<BR>>> evaluation.<BR>>><BR>>><BR>>> Regards,<BR>>> --<BR>>> Gustavo<BR>>><BR>>><BR>>>> -----Original Message-----<BR>>>> From: postgis-devel-bounces@postgis.refractions.net<BR>>>> [<A href="mailto:postgis-devel-bounces@postgis.refractions.net">mailto:postgis-devel-bounces@postgis.refractions.net</A>] On<BR>>>> Behalf Of Mark Cave-Ayland<BR>>>> Sent: Thursday, July 17, 2008 5:50 AM<BR>>>> To: PostGIS Development Discussion<BR>>>> Subject: Re: [postgis-devel] Nice diagrams<BR>>>><BR>>>><BR>>>> Kevin Neufeld wrote:<BR>>>>> Ah yes, that's a good point.  The images were taken using<BR>>>> OpenJUMP's<BR>>>>> screenshot feature and modified using PhotoShop.  I suppose<BR>>>> I could save<BR>>>>> the features as small shapefiles, jml, or gml, but it would<BR>>>> be nice to<BR>>>>> save the styling as well (which doesn't work yet in JUMP).<BR>>>> (Personally,<BR>>>>> I like the drop shadows, which obviously JUMP can't do as well).<BR>>>>><BR>>>>> Does anyone have any suggestions how we could standardize<BR>>>> this?  Perhaps<BR>>>>> a GIS editor I'm unware of that can perform nice rendering<BR>>>> so all we<BR>>>>> have to do is load a project file and take some screen shots.  Or,<BR>>>>> alternatively, we just agree on a color theme, image size,<BR>>>> etc. and save<BR>>>>> the features as WKT in an images_src directory.  (Is there<BR>>>> an opensource<BR>>>>> picture editor out there that can do drop shadows?)<BR>>>>><BR>>>>> Cheers,<BR>>>>> Kevin<BR>>>><BR>>>><BR>>>><BR>>>> ATB,<BR>>>><BR>>>> Mark.<BR>>>><BR>>>> --<BR>>>> Mark Cave-Ayland<BR>>>> Sirius Corporation - The Open Source Experts<BR>>>> <A href="http://www.siriusit.co.uk/">http://www.siriusit.co.uk</A><BR>>>> T: +44 870 608 0063<BR>>>> _______________________________________________<BR>>>> postgis-devel mailing list<BR>>>> postgis-devel@postgis.refractions.net<BR>>>> <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>>>><BR>>> <<BR>>> drawing<BR>>> -1.png><drawing-1.svg>_______________________________________________<BR>>> postgis-devel mailing list<BR>>> postgis-devel@postgis.refractions.net<BR>>> <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>><BR>> _______________________________________________<BR>> postgis-devel mailing list<BR>> postgis-devel@postgis.refractions.net<BR>> <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>> -----------------------------------------<BR>> The substance of this message, including any attachments, may be<BR>> confidential, legally privileged and/or exempt from disclosure<BR>> pursuant to Massachusetts law. It is intended<BR>> solely for the addressee. If you received this in error, please<BR>> contact the sender and delete the material from any computer.<BR>><BR>> _______________________________________________<BR>> postgis-devel mailing list<BR>> postgis-devel@postgis.refractions.net<BR>> <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>><BR>_______________________________________________<BR>postgis-devel mailing list<BR>postgis-devel@postgis.refractions.net<BR><A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR></FONT></P></DIV></BODY></HTML>