Acronym for scalable vector graphics. An XML-based graphics file format that describes two-dimensional vector images, including animation.

learn more… | top users | synonyms

15
votes
2answers
7k views

How to Import SVG into GIS?

I have a PDF file, with a Map as a vector graphic. I want to get this into GIS. (I use ESRI's ArcGIS, but any FOSS solution is also fine). I know that it is not possible to directly get the PDF into ...
14
votes
2answers
2k views

How to create svg symbols that have modifiable fill color, stroke color and stroke width?

I want to create some svg symbols for Qgis using Inkscape, those symbols must have attributes as described in the question. For the last two days, I have been experimenting as instructed by Sourcepole ...
11
votes
4answers
15k views

Is there a SVG symbol library for qgis?

Im currently using default simple symbol capabilities or dingbat fonts for point objects. Is there maybe a SVG symbol library for qgis that is a bit more extensive than that which is included? I've ...
11
votes
3answers
7k views

How to create a GeoJSON that works with D3?

I'm simply trying to convert a .shp file to a geoJSON format using: ogr2ogr -f geoJSON output.json input.shp After executing the command nothing seems to be wrong. Here's an excerpt from the ...
11
votes
3answers
3k views

Leaflet: how to draw curved lines?

So, I'm trying to draw curved lines in my application which is based on a Leaflet map. As far as I know Leaflet does not support drawing curved lines at the moment, so my question is really more ...
9
votes
2answers
2k views

Shapefile to SVG with ArcMap (while retaining country attributes)

Does anybody know how to export the Natural Earth 1:110m shapefile to SVG with ArcMap while retaining the country attributes? From SVG I'm gonna try to convert it again over to RaphaelJS to achieve ...
8
votes
5answers
896 views

What cartographic line symbol could make a coastline represent water like this old map?

I live in a coastal area with lots of islands. Sometimes with a black and white map it's hard to distinguish land from sea. So I'm trying to replicate this old map's style. I'm trying to do this in ...
8
votes
1answer
448 views

What version of SVG should I be saving my images with for QGIS? Any particular options I should use/avoid?

I have a illustration in Adobe Illustrator that I'm trying to export as an SVG file and add to my map layout using the Print Composer of QGIS 1.7.3. When I add the image, I get strange artifacts that ...
7
votes
2answers
3k views

How to generate an image from OSM on command line?

Is there a GNU/Linux command line tool that allows to generate an image file from OSM, preferably as an SVG?
7
votes
2answers
1k views

Exporting a set of lat/long coordinates to SVG

Suppose I have a set of coordinates in latitude and longitude. What would be the easiest way to export those to an SVG file? I'd rather do this programatically (any language or library will do) ...
7
votes
1answer
356 views

How to migrate SVG-based styles for QGIS to other computers?

I'm working on a project that has involved creating many recolourable SVG icons and bringing them into QGIS. These are then used in layer symbologies, with these subsequent layer styles exported as ...
6
votes
2answers
1k views

Options for PostGIS and Mapserver outputing SVG, and client with OpenLayers

This question is related to "Options for displaying PostGIS vectors in OpenLayers?", but I need SVG output on server. OpenLayers must render SVG directly. We are using Mapserver6, and thinking on WFS ...
5
votes
1answer
7k views

How to convert shapefile to SVG keeping internal data?

I am very new to GIS. I found a tutorial on how to make a choropleth using Python tools. I want to follow it but use my own data and map. However the tutorial uses a US map SVG file and I need to use ...
5
votes
2answers
3k views

Leaflet Polyline with custom fill pattern

I'm drawing Lines with leaflet.js an have to create custom styled polylines. So i got various image files which should be like a repeated background image in HTML. So is it possible to give a drawn ...
5
votes
1answer
772 views

How can I export big SVGs for further use in Inkscape?

I am trying to export as an svg from Quantum GIS and import into Inkscape. However it is failing to Import. Inkscape comes up with the error 'Failed to load the requested file'. The files are quite ...
4
votes
5answers
3k views

What web mapping libraries are suitable for indoor maps?

I am looking for a custom mapping library but not to display an actual geographical area but to display a custom floor-plan. I have been looking for a while but most of the solutions that I found are ...
4
votes
2answers
601 views

Georeference vector linework

I'm new to GIS and a lot of searching didn't answer my specific question so far, so I hope someone can help me here. What I want to do is creating a small web application to visualize election ...
4
votes
4answers
8k views

Looking for an annotated vectorial map of the world

I'm looking for an annotated vectorial (PS/SVG/...) map of the world (+countries). Wikipedia contains many vectorial maps (e.g: http://commons.wikimedia.org/wiki/Category:Blank_SVG_maps_of_the_world ...
4
votes
2answers
2k views

Importing .svg images to use as Symbols in ArcMap 10.1

I have several .svg files that I want to use as symbols in ArcMap 10.1. However, I do not see any import feature or the sort to use these .svg pictures. Thanks
4
votes
2answers
2k views

QGIS exporting huge SVG [duplicate]

I'm having trouble exporting an SVG(or a PDF for that matter) from the QGIS print composer. I have a relatively simple map that should, when exported as an SVG, be maybe around 1MB in size, tops. But ...
4
votes
1answer
433 views

Looking for a SVG library for construction

Would anyone be able to suggest a good library for svg symbols for construction please? To be used in QGIS. Ideally water and pipeline network symbols. ciao
4
votes
1answer
854 views

How to prepare SVG images for presentation in OpenLayers?

I have a collection of SVG vector images I need to display on a map, probably using OpenLayers/KML. Is there any way to convert a vector image from SVG to KML? Or would it make more sense just to use ...
3
votes
1answer
398 views

Using Engineering symbols (*.svg) in QGIS?

QGIS looks straight forward except for the symbols or icons. I have created SVG symbols and when I place my pointer to the obvious blank areas in the symbol library a pop-up says that my symbol is ...
3
votes
3answers
155 views

Using SVG from Wikipedia to fill polygon?

I'm trying to use the flag of each region in Italy to fill each region's polygon. I have downloaded the shapefile of Administrative areas for Italy from diva-gis and am now attempting to fill each of ...
3
votes
2answers
351 views

How to use user made png/jpeg icons in QGIS 2.0?

I can only add svg icons in qgis 2.0. How can i use png or jpeg or gif images as icons in qgis2.0?
3
votes
2answers
258 views

How to render an SVG from PostGIS using ST_AsSVG

Speaking with a cartographer from National Geographic last night, my interest was again peaked in an open-source map publishing toolset built on PostGIS and Inkscape (as per his workflow and how ...
3
votes
1answer
199 views

Converting map image to GIS

I’m very new to GIS, and I’ve been reading a lot of manuals and information, but I thought I’d ask a couple of questions here. One of my major hobbies is drawing maps of a completely imaginary ...
3
votes
1answer
51 views

Is there a way to force QGIS to use scaleable markers for map prints?

The implementation of scaleable vector graphs in QGIS is very cool, however, when svgs are used for point pattern fill of polygons, these markers are obviously rasterized, blowing up the filesize of ...
3
votes
2answers
393 views

small difference in projection between tilemill and postgis

I would like to create a world map with interaction on continents created directly from a postgis database. For the moment, I have a POSTgis database with the data. I created a background with ...
3
votes
0answers
39 views

arcpy, ExportToSVG using paths

I want to export part of the map into (very big) SVG file. First I tried to do this using REST API: https://*server*/ArcGIS/rest/services/General/Etages/MapServer/export. This worked, the SVG file ...
3
votes
0answers
71 views

QGIS - assign different colors for SVG markers also in categorial / graduated symbols?

I understand it is possible to customize the color of an SVG marker via param(fill) However, I have to set the color manually, and cannot automatically assign it through categorical or graduated ...
3
votes
0answers
1k views

How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane?

I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in place in the leaflet-overlay-pane? (For example, how could ...
2
votes
1answer
168 views

How to scale SVG symbol based on zoom level in QGIS?

I am wondering if there is a way to scale SVG files I have stored as blob in a Spatialite database according to the current zoom level in QGIS. My hope is to have the SVG icon resize itself when the ...
2
votes
2answers
596 views

how we create line between two cordinates on polymap?

I am working on d3 and polymaps, I plot map and create circle on the given latitude and longitude which retrieves from the JSON file but now I want to connect those circles with line. I tried to do it ...
2
votes
1answer
478 views

SVG control not visible on top of Leaflet.js

I'm using Leaflet 0.7.1 and want to draw a radial menu (like openstreetmap's iD editor) on top using d3. Some examples I found use Leaflet's overlayPane to append the svg element to: var ...
2
votes
2answers
2k views

How to rotate a feature in openLayers

I have an svg image and I want to rotate it around itself so I do the following: var origin = new OpenLayers.Geometry.Point(vertices[0].x,vertices[0].y); feature.geometry.rotate(90 ...
2
votes
1answer
24 views

Attaching way id to SVG XML from GeoServer/PostGIS for postprocessing?

I render my SVG from Database Layer (PostGIS). I suppose there is basically 1-to-1 match between the ways (polygons) in DB and SVG path elements. Is it possible to attach the way id to the SVG XML ...
2
votes
1answer
110 views

SVG Issues in QGIS API

I'm using QGIS-2.4.0 to developing an application. I created my own custom MapCanvasItem for showing SVG. It is great to load a SVG from symbol library that QGIS provides(such as d:\QGIS ...
2
votes
1answer
161 views

How to write a custom canvas item for SVG marker by subclassing QgsMapCanvasItem in QGIS?

I want to subclass QgsMapCanvasItem for SVG marker in QGIS, I looked up a similar topic in stackexchange and QGIS mailing list, I found that this is similar to mine, I did exactly what @Nathan W did. ...
2
votes
1answer
128 views

How to create dynamically styled symbols (fill, stroke, stroke-width ..) with Geoserver?

Case scenario: I need to create symbology that takes fill, stroke and stroke width with information from the database. Problem arises with custom defined symbols like the one on the image. There are ...
2
votes
2answers
260 views

SVG symbols for alphabet characters e.g. A, B, C, … etc

Can anyone tell me whether there is a SVG plugin or source (or how to do) of letters of the alphabet e.g. A, B, C, D etc. I want to create a symbology with colour e.g. gray but also with letters in ...
2
votes
2answers
336 views

Export to Mapbox (TileMill) from PSD (or SVG/PNG)

Newbie question: I designed a map (not Earth-related) in Photoshop and I want to use something like Mapbox to serve the map and make it dynamic (bounding boxes, zoom in/out, etc). How can I go from an ...
2
votes
1answer
276 views

QGIS vs. SVG export w area names

Salve a tutti, esiste la possibilità di esportare un file SVG (a partire dallo shapefile) che conservi però i nomi delle aree? In sostanza ogni tracciato chiuso dovrebbe avere il nome originale ...
2
votes
1answer
330 views

Kartograph Open Street Maps

Firstly, congratulations to Gregor Aisch for creating such a wonderful library, thank you! I am having a little trouble rendering an svg from some osm data. I downloaded the Sweden transportation ...
2
votes
1answer
217 views

Why are some SVGs not displayed properly in print composer?

I am having weird problem with adding .svg to qgis print composer. I have done some smaller symbols before in inkscape and they work - however the latest one displayed itself as huge black square. I ...
2
votes
1answer
599 views

ArcGIS Javascript API - IE9 Quirks Mode

I'm having difficulty understanding why ArcGIS Javascript API isn't rendering SVG when running in IE9 quirks mode. When I visit the ESRI sample site at ...
2
votes
0answers
85 views

Convert from GeoTiff to SVG

Basically, the title says it all: I have a customer who can only export structured map data as a GeoTiff file. My job is to convert this file into proper SVG. How can this be done? I have googled ...
2
votes
0answers
135 views

Kartograph - AttributeError: _Shape instance has no attribute 'parts'

I am new to GIS and open source tools so bear with me. I am attempting to convert a shapefile to svg by running kartograph as a python module. My source file (provided by the local GIS ...
2
votes
0answers
101 views

Place an image svg into an R plot [duplicate]

I have a set SVG icons (weather icons ) and I want to create a figure with svg superimposed images representation of a Shapefile. below my shapefiles and points representing the position where I ...
2
votes
0answers
176 views

Displaying a box with text on a leaflet map

Is there a way to display a label or textbox on a specific geo-place on a map produced by leaflet.js.? I know about the Marker- and Polygon Method But I can't find a way to put text in the polygon. I ...