Tag Info

Hot answers tagged

12

Here are points in the table of contents: Here's what my SVG that I downloaded from some website looks like to Windows Explorer in my downloads folder: And what it looks like in IE: Now double-click your point layer to open the layer properties choose the Simple Marker then from the 'symbol layer type' drop-down in the upper-right, choose "SVG" ...


10

You'll find some symbols and the way to install them on http://ssrebelious.wordpress.com/2011/10/11/qgis-symbology-set/: Use QGIS 1.7 or higher. Go to Settings->Style manager. Hit “Import” button. Provide path to the “symbology-ng-style-eng.xml” file in this archive. Pick up needed symbols or choose all of them and hit “Import” button.


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


9

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


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


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

This is currently not supported. The only way you are able to do this is to embed or link a png in a SVG file. Adding support for loading other image formats shouldn't be too hard for a future version.


6

Not QGIS-specific, but Maki is a map-specific icon set in SVG from MapBox.


5

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


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


5

The Postgis function ST_AsSVG simply converts geometries into their SVG point or path equivalents, and does not allow you to add any attributes/styling directly. For example, a query with a Point, Linestring and Polygon: WITH shapes (geom, attribute) AS (VALUES( (SELECT ST_MakePoint(0,0)),1), ((ST_MakeLine(ST_MakePoint(0,0), ...


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

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

Tho it's not a set of Symbols, in the noun project you can download many SVG files (under creative commons licence) that can easily used to create composed symbols in QGIS.


4

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 Extracting vector data from PDF It's what you have already done, basically just open the PDF in Inkscape, find the shapes you want and remove all backgrounds and surrounding text. Save as .dxf ...


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


4

In InkScape, try saving the image as "Plain SVG" if you're not already doing so. Also try positioning the center of the flag in the upper left corner of the canvas (this is origo of an SVG.)


3

have you tried specifying the correct EPSG code for your shapefile and GeoJSON output ? E.g.: ogr2ogr -f GeoJSON -s_srs EPSG:.... -t_srs EPSG:.... output.json input.shp


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

you can check out map icons collection here. they are not format of svg, but you can convert them for your needs. i hope it helps you...


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


3

You can use the arc.js plugin for leaflet to draw curved lines.


3

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/


3

Here is another workflow, using ogr2ogr with GCP points: Extract the lines as svg (as above) load into inkscape and save as dxf Load into QGIS, with EPSG:31467 as CRS Read a couple of coordinates from significant edges of the surrounding city border Open OSM editor JOSM and download the relation 62591 of the city border Save that as GPX Load the border ...


3

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.


3

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.


3

I have been making my own map app using my own picture maps. Our university shifted to a new campus and I am mapping out 7 storeys (indoor), with 5 levels of zoom, from hand-drawn maps. Leaflet is able to work with custom map tiles! I have followed this guide (omarriott.com/aux/leaflet-js-non-geographical-imagery ), just that I did some trial and error ...


3

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



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