1

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.

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

2 Answers 2

1

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

1
  • I finally manage to do that with st_scale and st_translate. Thanks for your help.
    – Farf
    Aug 26, 2012 at 9:46
0

I finally manage to do that with st_scale and st_translate.

1
  • Can you say us how did you do that please ?
    – Geo-x
    Jan 25, 2016 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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