Tag Info

Hot answers tagged

11

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

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


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.


6

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.


5

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


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

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

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

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

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.


3

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


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

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

Manual Method -- The GPS Visualizer takes in coordinates and can export them to a variety of formats, including SVG.


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

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.


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

Treat the floor plan as a geographical area. OpenLayers or Leaflet don't care whether the stuff they are displaying is indoor or outdoor - as long as you can define a coordinate system, it will be fine.


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.



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