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.


7

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

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 ...


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

I think using QGIS or another package would be a great idea. Usually people flow the other way...QGIS to Inkspace for additional cartographic design work, although use of SVG for symbology is common. Have you seen this post: http://stackoverflow.com/questions/15691541/qgis-how-to-import-svg-or-raster-images-into-quantum-gis It suggests converting to SVG ...


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" + ...


2

Considering IE8 support requirement, we don't have many options on the table. I can only recall one SVG lib that has VML fallback — Raphaël.js So you can try this Raphaël layer plugin implementation for Leaflet. https://github.com/dynmeth/RaphaelLayer I didn't try plugin myself, but successfully used Raphaël. Hope you can find a use of it. Here is the ...


2

This seems to potentially answer your question: https://github.com/bbecquet/Leaflet.PolylineDecorator I can't' comment on the appropriateness of the method... seems like a lot of code for a simple problem.


2

check out the kartograph library: http://kartograph.org/. This might do the job for you. There are good examples and tutorials on the site. There is also the QGIS simplesvg plugin that if I remember correctly keeps SHP attributes as ID in the SVG: http://www.duif.net/qgis/simplesvg/


2

You can use this structure to loop thru the columns of a table. Dim sCol As String Dim aCol As Alias Dim nCol As Integer For nCol = 1 To TableInfo(sLayer, TAB_INFO_NCOLS) sCol = ColumnInfo(sLayer, "COL" & nCol, COL_INFO_NAME) aCol = sLayer & "." & sCol Next This will loop thru the columns of the table sLayer and store the name in a ...


2

Not knowing your use case, you might want to take a look at the D3.js library (Data Driven Documents) for data visualization. While I don't know if it supports "zoom levels" per se, but it does support zoomable maps. Take a look at their many examples here: https://github.com/mbostock/d3/wiki/Gallery


2

OpenFloorPlan, based on D3.js, looks interesting, although I have not been able to find a demo online so I can't say much other than that it might work for you. Here are some slides from the FOSS4G NA 2013 conference.


2

The first thing to check is that you can open http://127.0.0.1/svg2.svg in your browser. I suspect that is the problem. The easy way to use an external graphic is to put it in the styles directory and refer to it using a relative path - I use something like: <Graphic> <ExternalGraphic> <OnlineResource ...


2

This issue is known and reported in the upstream issue tracker. There is no known workaround yet. If you would like to solve this, please add information in the bugtracker consider implementing a patch and creating a pull request or hire/contract a developer to implement this fix


1

I found a possible solution described by GISbiz which uses Enhanced Metafiles (EMF) as an intermediary format and recommends Inkscape or svg2emf to do the SVG to EMF conversion. ArcMap can use Enhanced Metafiles (EMF) as a picture for Creating a Marker Symbol or for Creating Fill Symbols.


1

Shapefiles don't store any information about how to represent the data, only the geometry and attributes of the data. As best as I can tell, SAGA only allows you (using the 'Export to SVG' tool) to export the geometry of a feature, and doesn't allow you to change the appearance of the exported SVG. You can export the layout of a map as SVG in ArcGIS using ...


1

I stumbled upon your question while trying to do the same thing, here's how I did it: Software used: Inkscape QGIS 2.2 Affine Transformation plugin for QGIS (required some modification, as the number fields didn't allow for enough digits and/or precision) Extracting vector data from PDF It's what you have already done, basically just open the PDF in ...


1

you could use the program MicroCAM (free), export to hpgl Plot-File and afterwards import into Inkscape. I have uploaded an example here: http://commons.wikimedia.org/wiki/File:Stabwerner.svg Download-Link for MicroCAM: http://www.csiss.org/map-projections/microcam/ additional info: As http://de.wikipedia.org/wiki/Stab-Wernersche_Projektion explains, the ...


1

The SimpleSvg plugin (as described in this answer) passes through some of the shapefile's attributes. It only works with Old Symbology layers, and may produce SVG that's specific to the Inkscape drawing program.


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

To create SVG symbols with modifiable fill color, stroke color and stroke width in QGIS, you should replace the style attribute from the path element with these 3 attributes: fill="param(fill) #FFF" stroke="param(outline) #000" stroke-width="param(outline-width) 1" If you are using InkScape, after writing the new SVG file, edit the file and replace the ...



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