Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm new to GIS. It is very intersting.

I have installed Postgis, insert shapefile, get data in SVG without problem (ST_AsSVG).

Now, I'd like to export the same svg but in pixel to add it on top of an image. Is it possible directly in the SQL query?

(I can parse the SVG in JS or PHP and convert every point...)

Thanks in advance for your help.

share|improve this question
    
you mean you want to convert it to a raster? Most graphics software can handle that. –  lynxlynxlynx Jul 5 '12 at 15:22
    
Sorry I was not clear, I needed svg to manage interaction in javascript. –  Farf Aug 26 '12 at 9:45
    
Did you consider using the viewBox attribute ? dev.w3.org/SVG/profiles/1.2T-old/publish/… –  user10135 Sep 11 '12 at 14:14

2 Answers 2

I'm not sure but if you connect to your database with Qgis, then you'll be able to export it in SVG.

share|improve this answer
    
I finally manage to do that with st_scale and st_translate. Thanks for your help. –  Farf Aug 26 '12 at 9:46
up vote 0 down vote accepted

I finally manage to do that with st_scale and st_translate.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.