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
0 votes
0 answers
45 views

Creating map boundaries or polygons from SVGs [closed]

I have regions of Croatia in SVG format and I want to put them on map (something like this). What I found out that when we what to mark some area on a map that we use polygon. Drawing by hand is not ...
user avatar
1 vote
1 answer
21 views

GeoJSON to SVG, keeping properties (mapshaper)

I'd like to include GeoJSON values from an overpass-turbo query (features[0].properties.name) as attribute of the resulting SVG path. Using https://mapshaper.org/, the default includes the sibling @id:...
user avatar
  • 145
5 votes
1 answer
100 views

Adding space between repeated symbol for SVG fill in QGIS

I recently learned how to perform an SVG fill for polygons. The result fills like a brick fill without spaces: Is there a way to define a space between the repeated image from within QGIS (as opposed ...
user avatar
1 vote
0 answers
22 views

How to keep wrapped text in SVG when loaded into QGIS?

I have an SVG that contains a graph where the y-axis title is wrapped to two lines. The upper line is the parameter ("Parameter") and the lower line is the units ("(units)"). When ...
user avatar
  • 11
1 vote
0 answers
8 views

Importing custom SVG as editable symbol from Affinity Designer in QGIS [duplicate]

How do I export an SVG symbol that I created in Affinity Designer to QGIS in a way that it allows me to edit the properties of the symbol (fill & stroke colour and stroke width) in QGIS? ...
user avatar
  • 361
2 votes
0 answers
45 views

Batch embed SVG markers to geopackage

I have recently converted my QGIS project with more than 70 layers to a GeoPackage in order to be able to hand the project over to other persons and computers. The project includes over 100 SVG ...
user avatar
2 votes
0 answers
16 views

Setting page margins for SVG map export in QGIS Print Composer

Is there a way to setup the print composer so that when you export your map to SVG it cuts everything that's out of the page margins? Everytime I export my map to SVG (my page is 240x180mm), when i ...
user avatar
  • 317
1 vote
0 answers
214 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 ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
  • 1,478
5 votes
1 answer
88 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 ...
user avatar
  • 622
0 votes
0 answers
17 views

Converting SVG into shapefile [duplicate]

How to convert a svg file in a shapefile to read it afterwards into QGIS?
user avatar
  • 399
1 vote
1 answer
146 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 ...
user avatar
  • 113
2 votes
2 answers
67 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 ...
user avatar
0 votes
0 answers
32 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'...
user avatar
4 votes
1 answer
200 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 ...
user avatar
  • 301
4 votes
2 answers
104 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 (...
user avatar
  • 301
0 votes
0 answers
49 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 1
1 vote
0 answers
123 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 ...
user avatar
  • 11
1 vote
0 answers
102 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 ...
user avatar
1 vote
0 answers
20 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(...
user avatar
  • 133
1 vote
1 answer
54 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 ...
user avatar
  • 11
3 votes
1 answer
177 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 ...
user avatar
1 vote
1 answer
97 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 ...
user avatar
  • 83
4 votes
2 answers
200 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 ...
user avatar
  • 41
1 vote
1 answer
237 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 ...
user avatar
1 vote
1 answer
55 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 ...
user avatar
7 votes
1 answer
304 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 ...
user avatar
  • 169
1 vote
0 answers
48 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 ...
user avatar
3 votes
0 answers
62 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 ...
user avatar
  • 5,493
0 votes
0 answers
56 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 ...
user avatar
2 votes
0 answers
243 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. ...
user avatar
  • 353
2 votes
0 answers
272 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 ...
user avatar
0 votes
0 answers
198 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, ...
user avatar
1 vote
0 answers
185 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 ...
user avatar
  • 169
1 vote
1 answer
154 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 ...
user avatar
  • 19
1 vote
0 answers
30 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 ...
user avatar
  • 3,653
1 vote
1 answer
183 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 ...
user avatar
  • 93
4 votes
1 answer
879 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?
user avatar
  • 677
0 votes
1 answer
130 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 ...
user avatar
0 votes
1 answer
120 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, ...
user avatar
4 votes
3 answers
568 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 ...
user avatar
  • 171
2 votes
1 answer
291 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=&...
user avatar
6 votes
3 answers
670 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 ...
user avatar
  • 3,653
2 votes
1 answer
125 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 ...
user avatar
  • 69
1 vote
1 answer
67 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 ...
user avatar
  • 1,858
0 votes
0 answers
163 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 ...
user avatar
  • 49
1 vote
1 answer
62 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&...
user avatar
  • 133
1 vote
0 answers
35 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 ...
user avatar
1 vote
0 answers
194 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. ...
user avatar

1
2 3 4 5
7