Geographic markup language, commonly known as GML, is a dialect of XML used to encode geographic features (vectors), coverages (JPEG2000), and sensor data and is also used as a common interchange format on the web. It was released by the Open Geospatial Consortium.
Questions tagged [gml-geographic-markup-lan]
61 questions
1
vote
1 answer
How to determine given GML version information?
Given a GML, how to determine its version? For eg, i have below GML. Is there any way to determine if its version 1, 2 or higher?
I don't see any version information as such. So what is the accurate way to determine the same?

Helena
- 444
- 2
- 15
1
vote
0 answers
How to create a nested GML using R?
I have a shapefile containing several polygons, this is a short version of my file (simple feature):
mygeom<-structure(list(itemID = c("a1234", "a27"), status = c(1, 0),
Schema1 = c("A", "A"), Schema2 = c("B", NA), Date = c("2020-03-01",
…

HMSP
- 152
- 2
- 10
1
vote
1 answer
XJC: generate JAXB classes from invalid scheme
I want to generate a set of JAXB annotated classes of the OGC IndoorGML XML scheme (http://schemas.opengis.net/indoorgml/1.0/indoorgmlcore.xsd)
So I run xjc -d scr -p [packagename] -nv [path_to_xsd] (the -nv suppresses the strict validation of input…

Fabian
- 85
- 5
1
vote
1 answer
Showing features from a GML3 file (with a specific projection)
How can I show the geometries from a GML file using a specific format? The problem is that Nothing is shown. No error messages.
In my Angular project, I first set the specific projection.
proj4.defs("EPSG:28992", "+proj=sterea…

tm1701
- 7,307
- 17
- 79
- 168
1
vote
1 answer
Python-AttributeError: 'int' object has no attribute 'decode'" when trying to call the GML file on NetworkX
Premise・What I want to achieve
I'm going to use Python to read the GML file.
Error Message
Traceback (most recent call last):
File "firstgml.py", line 9, in
G = nx.read_gml(gml_path)
File "", line 2, in read_gml
…

中田大樹
- 33
- 1
- 5
1
vote
3 answers
How to re-order a tokenized list in XSLT and read two values from it at a time?
I have some code (from GeoNetwork) which needs to convert Geography Markup Language (in XML) into GeoJSON. I'm currently trying to add functionality to read a polygon formed from a posList, but I'm having a hard time conceptualizing/drafting out…

KDM
- 81
- 7
1
vote
1 answer
"global element ... has already been declared" errors when trying to make C# classes with xsd.exe
According to using xsd.exe to generate c# files, getting error and warnings I've downloaded all 115 XSD files needed for GML (Geography Markup Language) definition including all referenced files, changed their "schemaLocation" attributes in "import"…
user7128558
1
vote
1 answer
Maintaining GraphAttributes with GraphCopy::initByCC in OGDF
I am trying to use OGDF to perform some processing on graphs loaded from GML files. These graphs are only meaningful if the node labels are maintained. Unfortunately, OGDF does not make it easy to keep node attributes like labels, since they are…

seanmk
- 1,934
- 15
- 28
1
vote
0 answers
How can i add a a roof overhang?
I am trying to create a building using Citygml4j library. The building should have building parts and overhangs. When examined I saw use of the BuildingInstallation class for building elements like balconies and overhangs. But I don't understand how…

Sumeyye
- 49
- 5
1
vote
1 answer
Error unmarshalling GML with golang encoding/xml
I am trying to unmarshal some XML, actually Geography Markup Language (GML).
I have an example at http://play.golang.org/p/qS6GjCOtHF
Two problems, the first:
error reading xml main.FeatureCollection field "LowerCorner" with tag…

user6186749
- 13
- 2
1
vote
1 answer
Converting Web Feature Service Geographical Markup Language data into a shape with R
I'm trying to convert Web Feature Service layers that are in XML/GML into a shapefile using R, I'm not quite there and would appreciate any help.
The WFS link is:…

Marine-Max
- 324
- 1
- 2
- 9
1
vote
4 answers
Is it possible to export spatial data from Sql Server 2008 in gml2 format?
Sql Server 2008 supports spatial data with new geometry and geography UDT's. They both support AsGml() method to serialize data in gml format. However they serialize data into GML3 format. Is there any way to tell it to serialize data into GML2…

Alex Reitbort
- 13,504
- 1
- 40
- 61
1
vote
0 answers
ROME & GeoRSS - Unable to write GML
I'm having some issues creating a GML-based point reference using ROME. My code will (hopefully!) explain what I'm trying to do better:
public static void geoRSSTest() {
SyndFeed feed = new SyndFeedImpl();
feed.setFeedType("rss_2.0");
…

user2583109
- 185
- 4
- 12
1
vote
1 answer
How to add shapefiles to a Bing Map using Openlayers 3
I am using Openlayers3 with Bing Maps to build my application. I have a point shapefile and would like to show it on the map. I could do it using Openlayers2 using the OpenLayers.Layer.GML() construct but am facing difficulty while trying to the…

ThisIsJ
- 269
- 2
- 4
- 10
1
vote
2 answers
Convert ajax response to an ol3 GML Layer
I am experimenting with OpenLayers3 and am having difficulty with a getfeatureinfo request. I'm trying to do it via ajax and convert the response to a GML layer as you could in OpenLayers2.
The code I'm using is as follows:
$.ajax({url:…

Steven Gardiner
- 21
- 4