Tag Info

Hot answers tagged

9

Here's a dedicated page for OSM SVG exporting: http://wiki.openstreetmap.org/wiki/SVG One way to do this through command line would be to use Maperitive - here's a tutorial on how to generate SVG. You can simply write all the commands mentioned in the tutorial into a text file and run Maperitive with the file specified in the command line. Here are some ...


7

You can try these options: Use pstoedit to export PDF to DXF and later import it to GIS software. pstoedit translates PostScript and PDF graphics into other vector formats. SVG is also supported by means of a plugin. Use a tool like CorelDraw which can read SVG format and export the file to DXF.


5

OK, playing around with different projections, scales and translations in d3 solved my problem. Since the default projection when using d3.geo.path() is albersUsa there was good reason to try some other projections. I suppose the problem could have been solved easier using the right EPSG specification when converting the shape file but these obscure numbers ...


5

If you have your spatial data in a PostGIS database, try ST_AsSVG, e.g.: postgis=# SELECT ST_AsSVG(ST_MakePoint(1797227.3141, 5431330.2559)); st_assvg -------------------------------------------------- cx="1797227.3141000001" cy="-5431330.2559000002" (1 row) (The linestring and polygon conversions are much more tricky, and thus very ...


4

I created those maps, so I can describe the process I used. There's probably a better way to do it, but here's how it works for me: In ArcMap, give each state its own layer. I use layer ID's from the source layer attributes table and then a bit of ArcMap Python: import arcgisscripting gp = arcgisscripting.create() ...


4

Inkscape is definitely the best alternative. And it's a pleasure to work with. I have generated hundreds of svg icons for QGIS based on SJJB icons (and contributed a few icons to SJJB icons). I find the resulting hiking map great. The rendering works the same for icons and inserted images in print layout. One caveat though: export in vector pdf gives ...


4

A Perl script called Geo-OSM-Tiles-0.02 might just do the job. From the module's description: This script downloads all map tiles from an OpenStreetMap tile server for some geographic region in a range of zoom levels. The PNG images of the tiles are stored in a directory tree that mirrors the paths from the server. A bounding box of geographic ...


4

This Political 'world map' available in vector and raster formats. Countries are individually selectable, as are country names. Suggest EPS or AI (Illustrator format) that can be easily exported into SVG with the XSLT or XML Style Sheets. Current version: 2.2 (2009) http://www.vectorworldmap.com/


4

This is how an SVG symbol is defined in QML: <symbol outputUnit="MapUnit" alpha="0.329412" type="marker" name="0"> <layer pass="0" class="SvgMarker" locked="0"> <prop k="angle" v="0"/> <prop k="fill" v="#000000"/> <prop k="name" v="/leaf2.svg"/> <prop k="offset" v="0,0"/> <prop ...


3

You are right, for a map of germany you need to change the default projection as it fits for USA data. It is centered somewhere in Kansas and for a map of size 960xsomething. The correct parameters of course also depend on your map dimensions. If you want to use the d3.geo.albers projection (best for coropleth maps) here are my parameters: var w = 415; ...


3

Since you mention Wikipedia as a starting point I gather you're looking for free maps. You might try funnelling the Natural Earth Data through shp2svg or shapefile-to-svg and see it that results in something useful. Convert Shapefiles Into SVG Format With Thematic Coloring indicates that the latter maintains attribute identifier information. If commercial ...


2

I use several methods. First pdf can be vector or image format. That depends on the software that created it and options used. If it is image format I use irfanview with the full plugins which support pdf reading.Save it to tif and then in raster design (autodesk) I geo-reference it and save out as geo-tiff. Then it will work as georeferenced in any of my ...


2

Hi I did write this code but only the points are been plotted { // JavaScript Document var po = org.polymaps; var svg = n$("#map").add("svg:svg"); var map = po.map() .container($n(svg)) .center({lat: 33.787, lon: -118.195}) .zoom(9) .add(po.interact()); map.add(po.image() .url(po.url("http://{S}tile.cloudmade.com" + ...


1

I got it working. It seems print composer does not like .svg's with text. I used inkscape "object to path" -function on both text's I had on the original .svg and now it displays properly. I also tested this on another .svg with text: It didnt display in print composer, until I used the same "Object to path" to change the texts into paths Correction - I ...


1

dont try it with point, you cant understand your obj. rotate or not...this code is for linestring and works good. var line = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.LineString(points),null,null); vector.addFeatures([line]); var origin = new OpenLayers.Geometry.Point(10, 10); line.geometry.rotate(30, origin); ...


1

QGIS SVG and PDF output from the print composer seems a bit problematic; may be related to a bug. Instead, use the 'print' button (which uses the system print dialog) to go direct to a PDF: Mac OS X: Print, then select the PDF|Save as... dialog; Windows: install a free PDF 'printer' such as CutePDF; On OS X, my PDF output from the tool in Print Composer ...


1

try this: var map = po.map(); var layer = po.geoJson(); var featAtoB = {type: "Feature", geometry: {type: "LineString", coordinates: [[14,50], [6,49]]}, properties: {prop0: "value0",prop1: 0.0}}; layer.features([featAtoB]); map.add(layer); i hope it helps you...


1

Corrected Answer (based on comment by whuber) whuber has said the correct answer should be Plate Carree Original Wrong Answer: I think you want Mercator projection, from the Normal/Transverse Mercator comparison, the normal projection has the following properties: The central meridian projects to the straight line x = 0. Other meridians project to ...



Only top voted, non community-wiki answers of a minimum length are eligible