Questions tagged [gml]

Geography Markup Language (GML) is an OGC Standard for expressing geographical features.

Filter by
Sorted by
Tagged with
30 votes
6 answers
34k views

Using ogr2ogr to convert GML to shapefile in Python?

I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script. I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand ...
Matt's user avatar
  • 2,706
14 votes
4 answers
4k views

What's an efficient way of detecting road junctions on a map? [closed]

I may receive maps from any source for my project, and for the C++ algorithm I'm making, it's imperative for the algorithm to know where road junctions (nodes where more than two road segments meet) ...
Nav's user avatar
  • 375
14 votes
2 answers
6k views

Remove unneeded columns from geographic data file?

I have some GML data that has some unneeded columns in it. I'd like to remove these columns in order to reduce the file size. (To clarify: I mean that the file has many points in it, and each of these ...
Richard's user avatar
  • 3,289
13 votes
5 answers
9k views

GML, KML, GeoJSON - Speed rendering 3109 polygons?

I am working with Geoserver, serving U.S. Lower 48 counties to openlayers (3109 polygons - lots more vertices). The counties are loaded into a postgis database. I am curious about developer ...
Jay Laura's user avatar
  • 4,463
13 votes
1 answer
3k views

Is srsName of "EPSG:4326" spec compliant in GML 3.1 / 3.2?

I sometimes see srsName="EPSG:4326" in GML documents (e.g. https://postgis.net/docs/ST_GeomFromGML.html, although my particular source is not public). The intent (except perhaps for axis order that ...
BradHards's user avatar
  • 12.9k
12 votes
5 answers
13k views

Convert GML to GeoJSON

I have downloaded a GML file from Statistics Canada and would like to convert it into GeoJSON to use parts of it in a D3 visualization on the web. However, I did not find a converter that would do ...
Lars Grammel's user avatar
12 votes
2 answers
2k views

Why does one part of GML -> KML conversion not work on Google Maps?

I have a client who wants to visualise cancer incidence and mortality rates by local/unitary authority across Great Britain. I've used Ordnance Survey data to get the boundaries of the authorities in ...
Andy's user avatar
  • 221
11 votes
2 answers
7k views

Why can't I edit KML/GML layers?

Newbie here confused by my first experience in QGIS I have a handful of lines defining a bike route. Originally they were saved in a .gml file and later translated into .kml so they could be viewed ...
Dennis Conklin's user avatar
10 votes
3 answers
959 views

What does it mean "GML is an XML grammar"?

I'm trying to get my head around the theoretical side of XML and GML. The OGC web page for GML states that: The Geography Markup Language (GML) is an XML grammar for expressing geographical ...
Mark Ireland's user avatar
  • 13.1k
9 votes
3 answers
7k views

How to write GML with Geotools?

I'd like to write GML using Geotools. Unfortunately, I can't find documentation on a GML Writer (except for this one from 2006: http://docs.codehaus.org/display/GEOTOOLS/WFS+++GML+DataStore). Could ...
underdark's user avatar
  • 84.1k
9 votes
2 answers
2k views

Storing GML surface in PostGIS

I'm using PostGIS 2.0.0 and would like to store a GML Surface in a way that allows calculating intersections between that surface and various points and lines. In my case, the Surface will have one ...
EM0's user avatar
  • 755
8 votes
2 answers
7k views

How to convert GML Surface to SHP Using OGR?

I have a very large .gml file with multiple layers in it. I would like to export one of these layers to .shp. It is a polygon layer (of lakes). However, I am getting the error: ERROR 1: ...
Darren Cope's user avatar
  • 6,616
7 votes
3 answers
7k views

How to import/export geographic information (gml or csv file) to geodatabase?

I am searching for C#/Java libraries that can import and export geographic information (gml/csv file formats) from and to geodatabases. If not yet available, is there other way to do this task? Any ...
eros's user avatar
  • 171
7 votes
3 answers
1k views

Linux Tool to visualize CityGML file

Can you recommend a Linux program that allows me to visualize CityGML models (3D)? I have tried a whole bunch so far (most of them via wine but also native ones) but I couldn't get a single one of ...
Simon Fromme's user avatar
6 votes
8 answers
15k views

Getting OS Mastermap data into QGIS?

I have been tasked with getting OS Mastermap topography data into QGIS system to compliment our other map layers. The data comes in .gz format. Which I am told needs to be decompressed before I can do ...
Adam's user avatar
  • 61
6 votes
4 answers
8k views

Advantages either way between GML and Shapefiles? [closed]

After a good start many months ago of getting into GIS through QGIS, I had to drop what I was doing and did not touch it for quite some time. I am now able to get back into it and have a need to load ...
Peter Cornelissen's user avatar
6 votes
3 answers
3k views

Is GeoJSON an OGC format

I am using geometries in a JavaScript page and it is best to use JSON objects rather than GML which is XML based. I heard of GeoJSON, but is it an OGC open format?
user5495269's user avatar
6 votes
1 answer
1k views

Seeking Tutorials for GML?

Do you know any good tutorials or any resources for learning from the beginning GML? I am asking because (later) i would like to learn how to make a application schemas in context of INSPIRE.
6 votes
1 answer
3k views

What is the best way to convert WKT String to GML String

What is the best way to programmatically convert WKT String to GML String? Every reasonable library (at best available in some Maven repository) can be used. Till now I came up with this solution ...
Infragile's user avatar
  • 173
5 votes
2 answers
28k views

Converting GML to Geodatabase Feature Classes?

I have a series of XML files containing GML tags such as : <gml:posList srsDimension="2">454780.3125 525867.9375 454762.0625 525994.5625 and I need to convert these into ESRI feature classes. ...
Alex Oulton's user avatar
5 votes
4 answers
2k views

Looking for web and desktop tools with GML support

I am a graduate student and a novice in GIS field. I have few GML files that contain vector polygon data and I want to see them in a map format. The problem is that I do not have access to ArcGIS/...
justin waugh's user avatar
5 votes
2 answers
11k views

Using Python to parse an XML containing GML tags

I am trying to write a python script which pulls GML tags out of an XML file and formats them into WKT for inserting into a PostGIS database. I have been successful in doing so for an XML containing a ...
Matt's user avatar
  • 2,706
5 votes
1 answer
2k views

Is there an XML equivalent to GeoJSON?

In my web application, I am retrieving geospatial data from a server backend (Java) to the browser frontend (JavaScript). I am considering two options of how to serialize the data in this ...
Imp's user avatar
  • 878
5 votes
2 answers
10k views

WFS Request Layer (GML) with Filter

Is there a solution to request the GML layer from Geoserver with filter like using bbox: http://localhost:8080/geoserver/tiger/ows?service=WFS&version=1.0.0 &request=GetFeature&typeName=...
Crazenezz's user avatar
  • 143
5 votes
2 answers
2k views

Why are the polygons in my GML not rendered?

I tried to view GML files from download services ( http://services.cuzk.cz/gml/inspire/cp/epsg-5514/ ) and I have a problem with viewing of polygons from layer "CP:CadastralParcel". This Layer ...
Petr Souček's user avatar
5 votes
2 answers
2k views

Which topology file formats are supported by QGIS?

I would like to know which topology file formats are supported by QGIS. I am particularly interested in displaying topologies encoded with TopoJSON or GML. But any other portable topology file ...
Luís de Sousa's user avatar
5 votes
1 answer
519 views

Experience with Geoserver's GML Extension

I'd like to know if Geoserver's GML extension works (well) with GeoServer 2.1-RC2 and whether it will enable uploading of GML files via REST API.
underdark's user avatar
  • 84.1k
5 votes
2 answers
2k views

Adding GML files in GeoServer?

How can I add GML files to a GeoServer 2.2.2 instance? How can I edit them "on the fly" and save the results back to the server using OpenLayers? I'm adding a vector layer. in which we want to use ...
user15058's user avatar
  • 119
5 votes
1 answer
543 views

How to convert WFS request to GML?

I have the following: var popProto = new OpenLayers.Protocol.WFS({ url: WFS_HOST, version: "1.1.0", featureType: layerName, featureNS: namespace, srsName: "EPSG:4326", ...
okello's user avatar
  • 1,780
5 votes
1 answer
7k views

How to get a GML overlay on Google Maps?

Anyone know how to get a GML file to show as an overlay on Google Maps? To be honest I don't know my GML from my KML, or my ETRS89 from my WGS84, as this topic is completely new to me. A bit of ...
ColinM's user avatar
  • 51
5 votes
0 answers
196 views

How to set up Geoserver app-schema feature chaining?

I am using Geoserver 2.12 with the application schema plugin to map a PostGIS database schema to the GeodesyML schema. I need to set up a WFS request that returns GeodesyML output such as: <wfs:...
medley56's user avatar
  • 365
4 votes
3 answers
823 views

Selecting certain text from attribute values in QGIS using field calculator

I am using QGIS 3.16 (Field Calculator). I have a number of values in the attributes of my GML file that read: 'Nonconiferous Trees' or 'Nonconiferous Trees (Scattered)' or 'Nonconiferous Trees, ...
cartocraftsman's user avatar
4 votes
1 answer
217 views

What is the best format to encode polygons such as lakes?

I am looking for a standard format to encode polygons, such as lakes, in one file that is easy to create and common so that others can use it in different GIS systems. Every file will contain data on ...
Rami's user avatar
  • 51
4 votes
2 answers
459 views

Modelling per-segment attributes in GML LineString

This is not a software-specific question, but rather a question about how to represent some concepts in a GML LineString. It has to be GML, for policy reasons. Consider a GML LineString consisting ...
BradHards's user avatar
  • 12.9k
4 votes
1 answer
654 views

GeoServer DescribeFeatureType response missing attribute for GML only

We have a GeoServer 2.18.2 instance serving data from PostGIS that seems to return a different structure for DescribeFeatureType requests depending on the outputFormat specified in the request. One of ...
Wrass's user avatar
  • 173
4 votes
2 answers
917 views

Is it valid GML if the boundary of a polygon intersects itself?

Is it valid GML if the boundary of a polygon intersects itself? E.g. I have this polygon consisting of some gml:LineStingSegment and one gml:Arc: My task is to import GML based data (german ALKIS ...
Jens's user avatar
  • 6,219
4 votes
1 answer
3k views

Is it possible to convert a .shp file to .gml?

Is it possible to convert a shapefile to a gml file? If so, how and using what tools?
LearningSlowly's user avatar
4 votes
1 answer
2k views

Using ogr2ogr to convert multiple GML files to a postgis table

I have a folder with 150 .gml (addressbase) files I need to upload to my postGIS/postgres database. After the first gml is uploaded, the rest will be appended to it to form a single table. However I ...
Theo F's user avatar
  • 1,829
4 votes
1 answer
4k views

How to convert gml:pos to latitude and longitude?

I'm trying to figure out the latitude and longitude of rail stations that are contained in this WMS feature list. I'm completely new to the GIS field, so please forgive me if I use the wrong terms ...
Duncan Jones's user avatar
4 votes
2 answers
652 views

Using zoo-project WPS service in QGIS WPS-Client

I've created a python wps service in the zoo-project framework, which is used to calculate a Line of Sight based in on a start point, an end point and a start point height. The service works fine if i ...
JonasPedersen's user avatar
4 votes
2 answers
3k views

How to use the OGR/GDAL configure options in QGIS Python environment

I'm looking for a solution how to use the OGR/GDAL configure options (--config) in the QGIS Python environment. http://trac.osgeo.org/gdal/wiki/ConfigOptions Setting special configure options is ...
Juergen Weichand's user avatar
4 votes
3 answers
766 views

Trying to import Dutch Infrastructure GML using OGR GMLAS driver, but no geometries?

I have some Dutch Infrastructure GML files that I'm trying to display in GeoServer. Step 1 is to import the GML into PostGIS and while I can make it work using the OGR GML driver, I end up with a ...
Ian Turton's user avatar
  • 81.5k
4 votes
1 answer
3k views

Creating simple citygml 3D models based on 2D shapefiles (alkis) shp2gml using Python?

How can I create a simple LoD1 citygml-model using Python?
hotzar's user avatar
  • 79
4 votes
1 answer
5k views

Upload KML / GML / GeoJson to Geoserver through Rest API

What is the best option, if any, to upload a vector format like GeoJson, and or GML to Geoserver? The environment from which to upload will be a client web-application, so i cannot use curl. In the ...
hnrch's user avatar
  • 389
4 votes
1 answer
2k views

How to debug ogr2ogr ERROR 1: Did not get at least 2 values or invalid number of set of coordinates?

I'm trying to convert a government data contour GML (http://geo.data.linz.gv.at/katalog/geodata/hoehenschichten/2011/1m-Hoehenschichten.gml) to Shapefile. It seems like it was created by FME: <?...
underdark's user avatar
  • 84.1k
4 votes
1 answer
2k views

Convert gml to raster in QGIS

I have a dataset of type citygml (*.gml). It includes information about buildings and their rooftypes. you can find a sample file here: https://www.opengeodata.nrw.de/produkte/geobasis/3d-gm/3d-...
user117408's user avatar
4 votes
3 answers
1k views

Read an INSPIRE GML in QGIS2.0 : gml:xlink resolving

I'm trying to read an INSPIRE GML, which contains internal and external links between the elements. I saw on the GDAL site that we can set environment variable in order to load this link in QGIS (http:...
Lombard's user avatar
  • 41
4 votes
1 answer
684 views

Can GeoTools parse GML CRS definitions?

A kind of branching of this question. Soon I will need to handle GML Coordinate Reference Sysyem definitions in a Java servlet. Links: GML OGC reference. Concrete example. I know that GeoTools ...
Campa's user avatar
  • 785
4 votes
2 answers
7k views

Open with QGIS a GML file (INSPIRE schema) created with HALE studio

I'm trying to export in GML the transformed data of "Basic hydrography example" of hale studio and to add the file in QGIS, using the plugin GML application schema toolbox. The GML exported should be ...
PaolaB's user avatar
  • 287
4 votes
0 answers
468 views

PostGIS 2.0 st_geomfromgml using LineString fails with invalid GML representation [closed]

I am attempting to insert a geometry into a table using the st_geomfromgml function. The GML is being sourced from a Geoserver WFS request. The function call looks like this st_geomfromgml('<?...
tojofo's user avatar
  • 151

1
2 3 4 5
7