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

learn more… | top users | synonyms

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 ...
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& ...
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: ...
9
votes
2answers
951 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 ...
2
votes
3answers
974 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
422 views

PostGIS: ST_Transform function conversion problem

I'm inserting map data from a GML file with srid EPSG:27700 into a PostGIS database table with srid EPSG:4326. I'm using the ST_Transform function as in this snippet: ...
4
votes
0answers
269 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 ...
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
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
1answer
455 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
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 ...
2
votes
1answer
25 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
864 views

Rendering GML in QGIS 1.9.0

I have a set of GML geometries (see here), which I try to load in QGIS. The set contains both points and polygons, but when loaded into QGIS, only points are shown. I tried to follow this thread, but ...
2
votes
1answer
267 views

Service URL for Web Feature Service (WFS) using GML Simple Features profile?

Does anyone know of an "almost always available" Service URL for a Web Feature Service (WFS) using GML Simple Features profile? I'm keen to test WFS client capabilities without having to configure a ...
2
votes
1answer
736 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 ...
1
vote
0answers
41 views

Validate a gml file

I receive a gml-like response from a RESTful Web service. It looks good for me but I can not imported in QGIS. Is there an online validation tool for a valid gml file? Or am I missing something for ...
1
vote
2answers
145 views

Saving a gml layer does not change coordinates

I am trying to export a gml layer to geojson with lat/lng as the preferred coordinate system. So what I did was a 'save as' on the layer with selected CRS: 'IGNF: WGS84G'. Now I was hoping it ...
1
vote
1answer
337 views

Can use of GML Simple Features profile by Web Feature Service (WFS) be advertised?

The ArcGIS 10.1 documentation on Working with WFS services says: The GML Simple Features profile is recommended for use with ArcGIS and is the basis for WFS support in ArcGIS. Is there an easy ...
0
votes
1answer
69 views

Simple georeferenced 3D data format for building models

I am looking for a simple georeferenced 3D-data format to store very simple building models. Each building should be represented as a number of poylgons, semantics do not matter. It would be ideal if ...
0
votes
1answer
63 views

How to compose WFS GetFeature link from WMS capabilities definition?

This publication of geoinformation provides download links for GetCapabilities documents via WMS. The platform also runs a WFS service as can been seen here. I wonder if it is possbile to compose a ...
0
votes
1answer
340 views

WFS Layer in OpenLayers queries server for data but doesn't display the data

I have added a WFS layer to a map and can see (using Fiddler) a request being made to the server for the layer data. The server uses GML as the data format and the data being returned is valid. ...