Hot answers tagged

9 votes
Accepted

Turn off the setting of QGIS to produce XML when closing Raster layer

Are the xml files *.aux.xml? If so, it's not QGIS creating them, it's the GDAL library which uses them to store metadata, including statistics. You can disable completely by setting the ...
user avatar
  • 51.8k
9 votes
Accepted

Import PNG symbols in QGIS

Your best bet is to use InkScape and convert your graphics to SVG. Polygons can be filled with rasters, but points and markers need SVG. If your symbol is available in a font, you can also use Font ...
user avatar
  • 19.8k
8 votes
Accepted

Exporting data in XML file format from ArcGIS for Desktop?

Data needs to located in a geodatabase in order to export to XML. You can do this manually, or use the tool Export XML Workspace Document (Data Management). For the manual approach, simply right-...
user avatar
  • 50.2k
7 votes
Accepted

How to render PostGIS raster with Mapnik XML?

For those who will stumble on this question like me.. It appears that the plugin has been generated (https://github.com/strk/mapnik/tree/2.3.x-pgraster) and has been merged in official Mapnik Repo. ...
user avatar
  • 168
7 votes
Accepted

Restricting values to domain codes (beyond attribute table)?

Business rules vs data integrity rules When you model your database, you specify the business logic in two spaces: a. The data integrity rules. This includes among others having an integer column so ...
user avatar
7 votes
Accepted

.xml missing in shapefile, problems with displaying in arcgis

The .xml file is the metadata file. An XML/metadata file is not a compulsory file needed to form shapefiles. The minimum files needed are: .shp — shape format; the feature geometry itself .shx ...
user avatar
  • 2,261
7 votes
Accepted

XML bounding boxes to shapefile QGIS

You can use rasterio for getting geo-coordinates from pixel coordinates, and pyshp (shapefile) for creating a shapefile. import rasterio import shapefile # -> pyshp module import xml.etree....
user avatar
6 votes
Accepted

Reading KML Files in R?

Functions in rgdal read data into sp class objects, which can only contain one type of spatial object - a set of points, or lines, or polygons. The sf package provides classes for geometry vectors ...
user avatar
  • 51.2k
6 votes
Accepted

Exporting vector layer's style to XML

The qml file style file you get when exporting layer styles is different from the one you get in the "Style manager" when you export. The second format is the accepted one in "Create ...
user avatar
  • 28.6k
5 votes

Extract country border from OpenStreetMap

There is a service that allows you to retrieve any administrative border from OpenStreetMap in a number of formats. https://osm.wno-edv-service.de/boundaries/
user avatar
  • 296
5 votes
Accepted

How to properly get coordinates from gpx file in python

GPX files use XML namespaces (look at Parsing XML with namespace in Python via 'ElementTree' or Read GPX using Python ElementTree.register_namespace? for example). The namespace is {http://www....
user avatar
  • 50.8k
5 votes
Accepted

Python toolbox documentation from within pyt file

This was bothering me probably more than it should have, and after getting to know python a little bit I've found that the problem is pretty easy to solve. Since I'm mostly an R user, these lines of ...
user avatar
  • 833
5 votes
Accepted

QGIS 3.4. project file editing

You have to unzip Qgz file first. Then you can edit the qgs file with any text editor.
user avatar
4 votes

schools: how are they tagged - with the same method all over the world?

The thing here is that you have given the example of amenity = school tag, but you are actually querying building = school. It is normal for buildings inside school to be tagged as building = yes, ...
user avatar
  • 8,119
4 votes

Does XSD for WMS 1.3.0 request exist?

The schema for the HTTP POST encoding of a WMS 1.3.0 GetMap request is located at: http://schemas.opengis.net/sld/1.1/GetMap.xsd (It's part of the SLD specification rather than the WMS specification ...
user avatar
4 votes

Importing XML document to file geodatabase

You can certainly use FME to wrangle the XML and write it to a database. Something for you to understand first is that GIS like flat data with rows and columns, including geometry. XML is not flat, ...
user avatar
4 votes
Accepted

Extract country border from OpenStreetMap

If you want to convert it to a Shapefile just download the xml (for example right-mouse-click on the download link and choose something like "save target as..." instead of opening it in the browser. ...
user avatar
  • 6,330
4 votes

XML Document points to wrong location after using arcpy.BatchProject()

I think your issue has been addressed here. As given in the second paragraph, For example, if the metadata describes the item as having one projection but the item's projection has changed since the ...
user avatar
  • 4,846
4 votes
Accepted

Restoring public.layer_styles table from PostGIS dump

You can add this statement SET XML OPTION DOCUMENT; at the beginning of the SQL backup file. Source : https://hub.qgis.org/issues/10079
user avatar
  • 5,665
4 votes
Accepted

Link between node->building->street in OSM

Your task to connect the house number automatically to the street name will surely fail in many cases. Just imagine a street crossing with four different named streets, where the house number could be ...
user avatar
  • 74.9k
4 votes
Accepted

How to save in a given XML schema in QGIS?

As far as i know there is no such tool, as the last comment in your Linked Question mentioned. The problem with xml is that it is extensible... It means anyone can create a new schema or alter an ...
user avatar
  • 6,025
4 votes

Importing XML data into QGIS

XML files can hold any kind of data. If a software like QGIS should be able to read it, the software (or the developer) needs to know the XML schema of the data. QGIS is able to read Openstreetmap ...
user avatar
  • 74.9k
4 votes

Converting xml -> dict -> xml using Python?

I just realized that the problem was in dictoxml or dom parsing. I changed my code a bit everything works nicely: xml = open(path, "r") org_xml = xml.read() dict_xml = xmltodict.parse(org_xml, ...
user avatar
  • 618
4 votes
Accepted

Editing ArcGIS metadata elements using Python?

I have some comments/suggestions for you. You mention that you do not have any admin privileges on your machine to be able to install the metadata module. Good news here, you don't need admin to ...
user avatar
  • 8,354
4 votes

GeoServer WPS Chaining problem

I can confirm it's an issue. It's probably a side effect of the Wicket 7 migration. I'd open a bug report at https://osgeo-org.atlassian.net/projects/GEOS/issues
user avatar
  • 15.5k
4 votes
Accepted

Using zip function into distance calculating program?

Look at How to calculate distances in a point sequence?, you need to iterate by pair of points to compute the distances points = zip(lats,lons) # or directly with a list comprehension points = ...
user avatar
  • 50.8k
4 votes
Accepted

Problem getting map using XML file with gdal_translate

The error message is misleading when it gives a hint about using for ignoring the error. The essential information is in this message HTTP status code: 0, error: SSL certificate problem: self ...
user avatar
  • 51.5k
4 votes
Accepted

Can I reference a way (street) in a node (representing a shop)?

Since this is mainly a mapping question you are better off at http://help.openstreetmap.org/. OSM has different address schemes. The most popular scheme is the Karlsruhe Schema where you add at ...
user avatar
  • 5,654
4 votes
Accepted

How to SortBy a GetFeature WFS request by FeatureId (fid) in XML?

That is not supposed to work. SortBy is defined in the WFS 1.1.0 standard as The SORTBY parameter is used to specify a list of property names whose values should be used to order (upon ...
user avatar
  • 51.5k
4 votes

XML schema for QGIS symbology

As far as I know, this schema doesn't exist. (Similarly, there is no schema for QGIS project files, which are XML as well.)
user avatar
  • 81.9k

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