Questions tagged [svg]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Using SVG map as basemap and interactive GeoJSON on top with Leaflet/OpenLayers?

I have SVG map and GeoJSON file with cells. I need to combine them so the user can hover/click on cell and get some cell info like cellID in the console. Currently using the angular-leaflet-directive ...
0
votes
0answers
19 views

Imported SVG's stroke width out of proportion in QGIS

I created a couple of SVGs in Inkscape for use in QGIS recently, following this video tutorial, which worked quite well. However, I have one SVG, that behaves normally in Inkscape, but on import into ...
5
votes
1answer
58 views

QGIS Layout problem - when rendering SVG a black rectangle appears

I have created a Layout, in this Layout there is a map. In this map there are SVG Markers. When I'm in the map composer, the SVG Markers are shown perfectly. But when I generate a Layout, a black box ...
0
votes
0answers
16 views

Converting SVG into shapefile [duplicate]

How to convert a svg file in a shapefile to read it afterwards into QGIS?
1
vote
1answer
59 views

Connect corners of two rectangles via SVG line in Leaflet

Assuming I have two rectangles on a leaflet map with CRS.Simple, how can I use svgOverlay to draw a <line> that connect top left corner of the two rectangles? I'm having issue with spatial to ...
2
votes
2answers
45 views

Making symbology non path dependent in exported layer using QGIS

I created a layer where the coordinates of each point (representing an earthquake) are imported from a CSV file. Each point also has an associated string ID. In another folder I've a database of SVG ...
0
votes
0answers
23 views

Exporting terrain shape vectors

I'm trying to export from QGIS a physical map, with terrain info (shades from green to brown so to speak). I managed through Contour tool to have the single lines altitude map and export to SVG, but I'...
4
votes
1answer
109 views

Using data defined override for SVG-marker lines

After not getting enough detail on that part of my problem in this post, I am now trying in a separate question. I am unable to do data defined override with SVG markers on a line layer. I'm not sure ...
4
votes
2answers
94 views

Styling lines with centroids by two different fields in QGIS

I have a line layer showing sectors of roads that I want to style by two different fields without duplicating the layer. "Field 1" is an integer ranging from 0-25 defining road usage (...
0
votes
0answers
43 views

Changing center of projection of an SVG using QGIS, then exporting back to SVG with new projection

I'm new to GIS and the innerworkings of, well, how a map projection is produced. I simply want to change the map projection center of an Equal Earth Projection map I have from Greenwich Meridian to ...
0
votes
0answers
15 views

Simplified geometry of the final image when exporting MapTiler from QGIS

I use the MapTiler plugin. I am exporting an SVG map for subsequent design in Adobe Illustrator. I need a certain scale, but the geometry is too simplified. How can this be avoided? The picture shows ...
1
vote
0answers
34 views

How can I go from a SVG file to a Polygon string with ID table in Python? [closed]

I would like to translate my SVG file (objects) into polygons. The result I would like to obtain is a table with a column of IDs and another column with the Polygons in it (string). I would like to ...
0
votes
0answers
57 views

Can't change size of SVG icon in header of ArcGIS Online dashboard

Does anyone know a way of changing/increasing the size of a custom SVG icon in ArcGIS Online? I've uploaded a logo of my organisation to use in a header for a dashboard. The icon is an SVG file and is ...
1
vote
0answers
14 views

QGIS 3.10:SVG outline width not exported in pdf

I am trying to use a self-written .svg in QGIS for a point layer. The .svg code is: <svg> <polygon points="0,2.7 2.7,0 5.4,2.7" fill="#ffffff" fill-opacity="param(...
1
vote
1answer
43 views

Show linestring geometry as centroid of a joined polygon layer with QGIS and spatialite ASSVG

In QGIS, I have a linestring and a polygon layer which are joined and I want to show the linestring as a centroid in the polygon layer. I used ASSVG() from SpatiaLite but wont't get a correct SVG. In ...
3
votes
1answer
47 views

"Type object 'GeometryType' has no attribute 'LineGeometry'" error when exporting shapefile to SVG

I want to export a shapefile to SVG. It's a simple shapefile from Germany that I downloaded from https://www.eea.europa.eu/ and applied some changes as I wanted. I downloaded SimpleSVG plugin but it ...
1
vote
1answer
71 views

Creating categorized renderer with SVG symbols using PyQGIS

I'm trying to create a renderer with SVG symbols and I can't seem to find any example on this. Inspired from categorized renderer for regular symbols, I wrote this, but I get an error saying that the ...
4
votes
2answers
147 views

Loading set of SVG symbols in SVG marker option

I have a folder full of SVG symbols for my project. how can I add them to SVG path. Because now I can only call one symbol at a time. but I want to use those symbols as marker, categorized ways and ...
1
vote
1answer
24 views

Exported SVG from Illustrator appears black

I have created 45 SVG Icons in Illustrator that I would like to use in QGIS, however all exported icons appear completely black. When using Save as > SVG I can mannually get it to work, though ...
1
vote
1answer
33 views

Using SVGMarker inplace of default symbol using in point vector layer

I am trying to use the SVGmarker symbol for displaying the point vector layer. I was able to change the default symbol for the point vector layer. but I am not getting an idea of using the SVGmarker ...
7
votes
1answer
202 views

Line pattern fill missing when exporting as SVG in QGIS Print Layout

When exporting from Print Layout as a .svg-file in QGIS the line fill pattern disappears of all polygons. How can I stop this happening? The problem doesn't occur when exporting as an image file or ...
0
votes
0answers
24 views

QGIS - Export raster layer to SVG with maximum detail

I'm trying to export the "Stamen Terrain labels" raster shapefile to an SVG. So I added it to a new QGIS project then I'm trying to use print composer to export the SVG. I want the entire ...
0
votes
0answers
32 views

QGIS SVG Fill Supports Pattern Tag?

The Problem I have a SVG of a triangle that I would like to fill my polygons with. The problem of just using the SVG Fill tool is the triangle would not overlap fill in the white space as shown bellow....
1
vote
0answers
42 views

Putting SVG images at a particular coordinate in QGIS C++ API

I am using QGIS C++/Python API for making a custom QGIS application. I am trying to import an SVG image at a particular coordinate(QgsPointXY) in qgsmapcanvas. Which classes should be used? I am very ...
2
votes
0answers
44 views

SVG, text and QGIS compatibility

I wanted to test QGIS 3.18 Parametrizable SVG functionality. More precisely I wanted to test text replacements (as described by some posters here) So far I'm trying to make some very very simple .svg ...
0
votes
0answers
47 views

Some isolated point symbols not rotating while rest do using QGIS

I'm trying to rotate some svg geology structure symbols in QGIS, using point data originally from a geoJSON file which I converted to geopackage. I used the expression "attitude_strike"-90 ...
2
votes
0answers
130 views

Converting SVG files to GeoJSON

I am struggling with converting SVG files (with geographic coordinate metadata) into a GeoJSON file. I have been trying the svg2geojson command line util and online conversion tool MyGeodata Cloud. ...
1
vote
0answers
151 views

Problems with import of QGIS generated PDF or SVG files in Adobe Illustrator

I have some issue with importing PDF or SVG files generated in QGIS 3.16 Hannover (with the option to export everything as vectors, no compression, no optimization for smaller file size, incl. all ...
0
votes
0answers
109 views

SVG tile interactivity with vue leaflet

I am not being able to extract or interact with the svg tiles data on mouse hover/click using leaflet. I have a tile server that serves svg tiles eg:https://sometileserver.com/roads/{z}/{x}/{y}.svg, ...
1
vote
0answers
134 views

QGIS keeps crashing when exporting print layout map - how to stop this?

When exporting my map which contains vector data and two maps (one as a global locator insert map) as an SVG file QGIS keeps crashing. I need the map to be exported as an SVG file as I want to edit it ...
1
vote
1answer
100 views

How can I do to export shapefile with symbology.svg COLORED to DXF format?

I created a shapefile categorized by characteristics, and I assigned to each element a SYMBOL.svg COLORED with Design Effects. I want to export the shape with the characteristics of the colored ...
1
vote
0answers
25 views

Embedding TTF in SVG doesn't work in SVG markers but in Layout text items

In my desparate aim to put everything inside a Geopackage file (mainly for use with the wonderful "input" app), I came across the situation where I wanted to store font files (TTF) inside my ...
0
votes
0answers
27 views

SVG created by QGIS Profile tool won't scale to include the vertical units!

I exported an svg image from the QGIS Profile tool but when I go to use it in a Picture on a map layout it will not scale to show both the X and Y units. It's like they are not considered as part of ...
1
vote
1answer
101 views

Convert shapefile to SVG while keeping attributes

Is there a way to export shapefile to SVG while keeping attributes? I tried the mapshaper and QGIS' Mapprinter plugin but with no result, I get the geometry only but I need attributes. I want when I ...
4
votes
1answer
545 views

Editing and changing the default symbol of North arrow in QGIS 3.10

The North arrow shortcut in the layout environment is very useful and I wonder if I can edit the default symbol and change it, with another symbol, from SVG library?
0
votes
1answer
94 views

SVG Icon Animation not working on ArcGIS JavaScript

I am working on Angular 11 project having ArcGIS JavaScript version 4.17. When placing points on map using GraphicsLayer am using custom SVG Icons, the ones with animation are not showing perfectly on ...
0
votes
1answer
66 views

Extracting a region's outline of roads from a GIS database, as a vector image

It's now about 5 days I've been trying to extract an outline of the internal transportation routes of a city (Tehran) from various kinds of GIS sources, and exporting that outline as a vector image, ...
4
votes
3answers
430 views

Use text diagram for labeling in QGIS

I created text diagrams for my polygons and want to juse them as labels in the print layout. Is there way how to adjust the Textsize of the diagrams? I was thinking about labeling the centriod of the ...
2
votes
1answer
216 views

How to fix the placement of an SVG marker in QGIS?

Currently, I'm trying to apply the things I've learned from this GIS.SE question to include an SVG marker of a looped arrow in my map. Here is the code for the SVG file in question: <?xml version=&...
5
votes
2answers
562 views

Using embedded SVG symbol in multiple layers

When I embed an SVG symbol in QGIS 3.x, the symbol is stored in the layer definition. If I have another layer and like to use the symbol again, I have to embed it a second time. How can I embed an SVG ...
1
vote
1answer
102 views

Using SVG symbols in QGIS 3 that are not saved locally

I am trying to design a QGIS (3.10.7) project which would enable users to work from home and not bind them to a specific computer at their workplace. I am using the PostgreSQL/PostGIS database to save ...
1
vote
1answer
52 views

Is there a way to display SVG Symbols in an Attribute Table in a Print Layout?

I'm working on a trail map that contains both hiking and mountain biking trails. In the Attribute Table for the Trails, I'd like to have a column that displays a bicycle SVG if mountain biking is ...
0
votes
0answers
122 views

Changing SVG marker color using Expression String Builder

What is the proper way to use the Expression String Builder to set a specific color for an SVG symbol? I found some geology svg symbols through this StackExchange answer that I had been looking for ...
1
vote
1answer
55 views

QGIS: using non-square SVG

I am using QGIS 3.10 and would like to visualise my data using a custom svg whose source code is: <svg enable-background="new 0 0 175 375" height="375" viewBox="0 0 175 375&...
1
vote
0answers
31 views

Is it possible to embed directly a SVG code in an "image element" in the map composer in QGIS?

I'm trying to implement custom SVG files in the map composer, I was able to add everything I wanted through HTML elements, but I want to add a custom "functional" North Arrow so I need to ...
1
vote
0answers
144 views

Shapefile To svg to dxf and back to shapefile

I need to edit a complex vector polygon layer based on a raster layer. It will be a lot easier for me to do the drawings in an illustration software like Inkscape and then to import it back to QGIS. ...
2
votes
2answers
91 views

How to import SVGs to QGIS without QGIS changing it?

I've been having problems with importing .svg-files to QGIS (LTR 3.10.5). This is how the image looks in Photoshop CC (then exporting as SVG). And this is how the SVG translates into QGIS. Basically ...
0
votes
1answer
542 views

Put an image file on the map in QGIS without coordinates

Is there any way to put an image file on the map in QGIS 3.12.1 and move it anywhere. For example, there is a map with national parks and I want to add an image (SVG) as a symbol, without coordinates ...
1
vote
1answer
385 views

Combine D3 node and HTML

I followed this example of putting a d3 graph in a leaflet popup. The code returns with div.node(). What exactly is a node? I would like the Leaflet Popup To display this custom HTML, and then have ...
1
vote
0answers
74 views

Using The Labeling Engine API vs. The simple labeling interface API in QGIS 3

I am working on a project where I am to label city maps. I want to label roads and buildings with text, and some point locations with symbols where I use SVGs and TrueType font. As labeling result, I ...

1
2 3 4 5
7