Skip to main content

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
0 answers
878 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 ...
Ivailo Popov's user avatar
5 votes
1 answer
330 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 ...
RBenet's user avatar
  • 790
1 vote
1 answer
498 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 ...
Jackson's user avatar
  • 113
2 votes
2 answers
212 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 ...
Carlos Herrera's user avatar
4 votes
1 answer
696 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 ...
e-shirt's user avatar
  • 727
4 votes
2 answers
201 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 (...
e-shirt's user avatar
  • 727
1 vote
0 answers
446 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 ...
gorefle's user avatar
  • 11
2 votes
0 answers
285 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 ...
user74862's user avatar
  • 131
1 vote
0 answers
48 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(...
cymed's user avatar
  • 155
1 vote
1 answer
102 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 ...
alex's user avatar
  • 11
3 votes
1 answer
413 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 ...
fateme tardasti's user avatar
1 vote
1 answer
380 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 ...
cam_gis's user avatar
  • 93
5 votes
2 answers
689 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 ...
Leepsha's user avatar
  • 51
1 vote
1 answer
1k 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 ...
Mapking101's user avatar
1 vote
1 answer
142 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 ...
Puneet Kumar's user avatar
7 votes
1 answer
724 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 ...
zcfaejl's user avatar
  • 169
1 vote
0 answers
93 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 ...
Puneet Kumar's user avatar
4 votes
0 answers
128 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 ...
Snaileater's user avatar
  • 5,743
0 votes
0 answers
83 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 ...
or0genic's user avatar
4 votes
1 answer
967 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. ...
bdelliott's user avatar
  • 455
2 votes
0 answers
692 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 ...
Matthias Ihl's user avatar
0 votes
0 answers
468 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, ...
Tirtha Das's user avatar
1 vote
0 answers
519 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 ...
zcfaejl's user avatar
  • 169
1 vote
1 answer
626 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 ...
Anna's user avatar
  • 19
1 vote
0 answers
72 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 ...
christoph's user avatar
  • 6,018
1 vote
2 answers
921 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 ...
Ismail's user avatar
  • 113
4 votes
1 answer
3k 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?
Pitheas's user avatar
  • 741
0 votes
1 answer
380 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 ...
Khaled Attiyat's user avatar
0 votes
1 answer
521 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, ...
FarigorzAzabnia's user avatar
5 votes
3 answers
2k 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 ...
user154532's user avatar
2 votes
1 answer
628 views

Fixing placement of 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=&...
Max Muller's user avatar
8 votes
3 answers
1k 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 ...
christoph's user avatar
  • 6,018
2 votes
1 answer
269 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 ...
PavelP's user avatar
  • 69
1 vote
1 answer
188 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 ...
Lost Mapper's user avatar
  • 1,961
0 votes
0 answers
397 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 ...
BRK92's user avatar
  • 49
1 vote
1 answer
113 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&...
cymed's user avatar
  • 155
1 vote
0 answers
58 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 ...
Gonzalo Villanueva's user avatar
1 vote
0 answers
430 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. ...
Yonoson Josef's user avatar
2 votes
2 answers
226 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 ...
Ansyi's user avatar
  • 21
3 votes
1 answer
10k 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 ...
Karol's user avatar
  • 43
1 vote
1 answer
676 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 ...
ANimator120's user avatar
1 vote
0 answers
147 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 ...
dreamquarter's user avatar
2 votes
0 answers
2k views

Why does leaflet treat an svg file differently in an image overlay than a png file and how can I prevent this?

I have a vector graphic in adobe illustrator format (ai). I would like to partially (only some layers) display this graphic as a basic map. I exported most of the layers of this vector graphic as ...
astridx's user avatar
  • 615
4 votes
1 answer
1k views

Read (and write) SVG from Geopackage with QGIS

There is the possibility to save the style of a layer in a geopackage: Layer.saveStyleToDatabase This style can be read by QGIS without additional code. But is there a way for QGIS to read SVG ...
Mike -EZUSoft-'s user avatar
0 votes
0 answers
398 views

QGIS 3: How to access additional SVG symbols

I want to create a map with a complex style and loaded a couple of additional SVG-libraries on my disk to the folder /usr/share/qgis/svg/ (I am on a Linux machine, running QGIS 3.10.1). I have ...
C.-F. Vintar's user avatar
  • 1,616
1 vote
1 answer
570 views

Display SVG icons in polygon layer using PyQGIS3

I have this code to set SVG icons only for selected features. It works, but only with point geometry, while I have a layer with polygon geometry. How can I modify this code to works also with polygon ...
Lorenzo's user avatar
  • 1,085
3 votes
1 answer
1k views

Exporting shapefiles as SVG polylines

Recently I've been using QGIS to create fracture tracemaps as line shapefiles. I need to export these lines as an SVG that uses the tag polylines rather than paths. I've used the SimpleSVG plugin but ...
katie3154xx's user avatar
1 vote
1 answer
1k views

Viewing all road names when zoomed out

I am trying to view all road names when zoomed out at this projection in QGIS - ideally at a font size of about 2. I'd then like to export this as a PDF. Can this be done?
Oli Sard's user avatar
1 vote
1 answer
573 views

Is there a limit on the size of the SVG point symbols in GeoServer?

I am adding an SVG icon on the map, but I got very small icon. I would like to get the icon size 30% or 50% larger than it is now. I tried to scale the icon, but I think that GeoServer has a size ...
vacuum's user avatar
  • 11
2 votes
0 answers
2k views

Getting polygons from PNG images for the QGIS Shapefiles

I would like to have ready polygons (borders) from some .PNG image and use them in QGIS as a shapefile. My file looks like this: which is crude raster PDF. My goal is to execute all borders (marked ...
Geographos's user avatar
  • 3,839

1
2
3 4 5
8