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

learn more… | top users | synonyms

12
votes
6answers
2k views

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

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) ...
10
votes
3answers
347 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 ...
9
votes
5answers
2k 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 ...
9
votes
2answers
954 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 ...
9
votes
2answers
1k views

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

Brand new to all of this, not even sure this is the right forum to ask in... I have a client who wants to visualise cancer incidence and mortality rates by local/unitary authority across Great ...
7
votes
3answers
3k 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 ...
7
votes
3answers
3k 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 ...
7
votes
2answers
3k 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: ...
7
votes
5answers
737 views

Tutorials for UML/GML

Do you know any good tutorials or any resources for learning from the beginning UML and GML ? I am asking because (later) i would like to learn how to make a application schemas in context of ...
6
votes
2answers
2k 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 ...
5
votes
1answer
322 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.
5
votes
1answer
269 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", ...
4
votes
4answers
438 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 ...
4
votes
4answers
3k views

How do I use ogr2ogr to convert a 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 ...
4
votes
1answer
115 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 ...
4
votes
1answer
475 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 ...
4
votes
7answers
3k views

How to get 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 ...
4
votes
1answer
329 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 ...
4
votes
1answer
338 views

how to add GML files in geoserver 2.2.2

How can I add GML files to a GeoServer 2.2.2 instance? How can edit them "on the fly" and save the results back to the server using OpenLayers? I would appreciate examples if possible. sir i m ...
4
votes
0answers
192 views

PostGIS 2.0 st_geomfromgml using LineString fails with invalid GML representation

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 ...
4
votes
0answers
270 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 ...
4
votes
0answers
480 views

Why doesn't the gml 3.1.1 schema validate with xmllint?

Running xmllint on the gml 3.1.1 schema fails, even though the release notes claim that this release was created to get the schema to validate using 'common tools'. There's questions about this on ...
3
votes
2answers
2k 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 ...
3
votes
4answers
1k views

What are the advantages either way between GML and ShapeFiles?

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 ...
3
votes
2answers
4k views

How do I convert GML to ESRI featureclasses?

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 featureclasses. ...
3
votes
1answer
456 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 ...
3
votes
2answers
3k 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& ...
3
votes
1answer
370 views

Python: shp file to GML using OGR

I am trying to convert a shapefile to GML 3.1.1 . I am using gdal 1.9.1 however the GML conversion it generates for a geometry feature is GML 2 and it also swaps the long/latitude coordinates. Are ...
3
votes
1answer
271 views

How to show one to many relationships in GML from GeoServer/Postgis?

I am just figuring out how to use GeoServer and Postgis. I am using the States.shp example that came with GeoServer, and I have uploaded that into a table into the Postgis database. I have created a ...
3
votes
1answer
276 views

Polygon Shared Boundaries in GML

Last week I was told on a phone conference that GML supports shared boundaries in Polygon's. I have been unable to find any documenatation to substantiate the claim. Here is the situation: I have a ...
3
votes
1answer
510 views

Is there a Java library to load data from a WFS server?

I am writing a java client to display remote GIS data. I want to load data provided in GML by a WFS server. Do you know a java library I could use for that?
3
votes
1answer
2k views

OpenLayers.Format.GML.parseFeature() with GML v3 data

I have a partial GML object with the geometry type polygon. The GML version must be 3+ since the coordinates are wrapped in the gml:posList tag: <gml:Polygon srsName="EPSG:25832" ...
3
votes
1answer
210 views

How can I get KML into JTS TestBuilder?

JTS Topology Suite TestBuilder supports WKT, WKB and GML inputs. What's a quick and easy way to get the geometry for a KML feature into one of these formats for input into JTS TestBuilder? For ...
3
votes
1answer
216 views

How to write GML parser with Geotools?

I wrote a Parser for a GML file from the OS Mastermap with geotools 8.4. With one part I still have a problem. This sniplet of the xsd: <complexType name="RoadLinkType"> ...
3
votes
1answer
410 views

OSS java approach to convert Shapefile to GML

We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ...
3
votes
0answers
107 views

Linux Tool to visualize CityGML file

I am looking for 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 them ...
3
votes
0answers
500 views

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

What is the best way to programatically 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 ...
3
votes
1answer
317 views

How to couple GeoTools GML bindings for encoding to GML 3.1.1

I've successfully created GeoTools (8.3) bindings for parsing and encoding XML bindings as described in their tutorial: http://docs.geotools.org/latest/userguide/library/xml/internal/bindings.html I ...
2
votes
4answers
894 views

GML Parser for C++/Java/…?

I am looking for a good parser for the latest GML (Geographic Markup Language) version in preferably: C++/Java/Ruby/... I am especially interested in reading the geometry of individual features. Does ...
2
votes
2answers
318 views

Ordnance Survey osgb:BNG spatial reference system not recognized by PostGIS

I'm trying to load an Ordnance Survey GML file into PostGIS using the ST_GeomFromGML function. The problem is that the spatial reference system that is used in the file, osgb:BNG, is not recognized by ...
2
votes
1answer
737 views

how to download a file from geoserver gml from a url using javascript?

how to download a file from geoserver gml from a url using javascript? I'm doing a web application with javascript, but I could not download files from geoserver, the url given entry does not bring ...
2
votes
1answer
450 views

How to add more than one xml file per layer

I'm using this code to add xml (osm relations) files to my map. osm_layer = new OpenLayers.Layer.GML("Polygon", relation.xml, { format: OpenLayers.Format.OSM, style: {strokeColor: "blue"}, ...
2
votes
1answer
26 views

PostGIS GML round trip confusion

I've investigated the issue of coordinate order in GML and each time I think I've got it but I find my self confused once again. I think some of my confusion may be to do with PostGIS. Doing a ...
2
votes
1answer
90 views

Transform wkb to gml geometry using FME

Maybe (and probably) this is stupid question, but I am totaly new to FME and geometry conversion. I need to transform WKB field from SQLServer to GML geometry using FME software. How can I do this?
2
votes
1answer
407 views

Programmatic conversion between GML and GeoJSON

I am modifying a .Net (C#, MSSQL) system to add some geography that I'd like to display on a leaflet map. I had originally expected to save GeoJSON directly into text strings in the DB, but after ...
2
votes
1answer
373 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: ...
2
votes
3answers
977 views

How to merge several GML files into one

I have a folder of GML files that I want to be able to merge to create one GML file that I can then view. I have tried this using the code described but substuting for GML in this website but to no ...
2
votes
1answer
394 views

OpenLayers WPS function fails in IE

I am making a WPS call in OpenLayers which works successfully in Chrome and Firefox but not in IE9. The response from IE tells me "Process failed during execution\nCould not convert to target type ...
2
votes
4answers
824 views

How do algorithms load pieces of maps?

If the user moves the mouse pointer to the top left corner of the screen, I want my software to auto-load the three tiles that are closest to the mouse pointer. My assumptions are that the smaller are ...
2
votes
1answer
37 views

Storing the GML application schema in postgres

I have to store the application schema for a GML file which is in Xsd format in PostgreSQL table. I want to use the ISO standards for that. From what I have searched I think ISO 19109 has to be ...