Hot answers tagged

13

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.


13

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


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


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


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.


7

I see the same issue. Took a look at this file in InkScape, and used Shift-Ctrl-F to bring up the Fill and Stroke properties. I noticed that the fill on your green and blue areas were set to 'pattern fill', stripes 1:1. Make a note of your blue and green colours first. Next, change to use 'Flat Color' on both the coloured areas, then reselect your colours ...


6

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


6

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


5

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.


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

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


5

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


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), ST_MakePoint(10,...


5

I would say this is due to the data being displayed on CartoDB in Web Mercator. The underlying data is stored in WGS84, so when you export to SVG, you're likely displaying that data in WGS84 in QGIS. Try switching your coordinate system in QGIS to Web Mercator and see what it looks like. (hint: click the EPSG:4326 button in the bottom-right of QGIS > ...


5

I am not sure whether this is a file location problem or if it is a problem of the svg you use. As long as it is within the root folder of your app I can not see why is not working. Dont you have any firebug errors? try to use the following snip to check if it is working. I have tried it works fine. var style = new ol.style.Style({ image: new ol.style....


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() gp.MakeFeatureLayer_management('...


4

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


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 k="...


4

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/


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

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 xmlns:xlink="...


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


4

When exporting to SVG, QGIS leverages Qt's QSvgGenerator in QgsComposer::exportCompositionAsSVG. Note the SVG Export warning dialog: The SVG export function in QGIS has several problems due to bugs and deficiencies in the Qt4 svg code. In particular, there are problems with layers not being clipped to the map bounding box. If you require a vector-...


4

If you have an SVG Marker symbol layer, you can set the size units to map units. That way the icon will always have the same real-world size. Note that the size in the data-defined properties is not radius or diameter but area - which I find weird and might be considered a bug.


4

(Note that I use QGIS 2.6.1) If they're all in a single folder, you can add the PATH to your SVG directory in QGIS: Settings > Options > System > SVG paths: Alternatively, you can create a folder called "svg" in your ".qgis2" directory and place all your svg files there: C:\Users\(your user name)\.qgis2 Hope this helps!



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