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

learn more… | top users | synonyms

4
votes
7answers
2k 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 ...
2
votes
1answer
762 views

What does “Error when writing Schema: A unique destination featuretype name could not be generated for” mean?

I have a bunch of GML datasets which I need to import to Esri featureclasses. I am using the Data Interoperability extension for ArcGIS, which should support this. However when trying to import my ...
0
votes
2answers
300 views

How to create shapefile from OS MasterMap data using ArcGIS Desktop 10?

How do I create a shapefile from OS MasterMap data in Arcgis 10? I have tiles from the Ordnance Survey Site and would like to create a topomap from the existing tiles. These tiles contains the ...
1
vote
0answers
165 views

GeoServer WMS OGC-filter fails with “I dont understand the tag: gml:Polygon”

I'm trying to construct an OGC filter to pass to a WMS GetMap request to GeoServer but I can't seem to do it. The goal is to show the parts of the layer that intersects with a supplied polygon. ...
0
votes
0answers
92 views

Issue loading GML with Openlayers no obvious error

i'm newbie using openlayers, there are no error in my firebug, but, my GML can't show in my browser, what should i do? this is my GML from result of converting my shapefile with ogr2gui : ...
0
votes
0answers
54 views

How to obtain the center of Vector layer created using WFS query?

I created a vector GML layer using a WFS query with a filter. The layer renders fine . However, the layer does not appear to have any features associated with it (layer.features.length is 0 ) I need ...
0
votes
2answers
559 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 ...
1
vote
1answer
143 views

How to modify gml using openlayers?

i have to edit GML file in openlayers but i am not able to do same. please guide me with some code if possible. i also have to save edited data to hard disk using openlayers Thanks for any help.... ...
3
votes
0answers
414 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 ...
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 ...
0
votes
1answer
227 views

How to publish a GML file as a Web Feature Service (WFS)?

I am interested in publishing a GML file as a WFS. I don't want to use a database like PostgreSQL. What would be the rough steps I need to do for that? I like to use open source software (geoserver). ...
3
votes
0answers
162 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 ...
5
votes
1answer
259 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", ...
1
vote
2answers
118 views

postgis st_geomfromgml error on point

In PostGIS 2.0 I try: select ST_GeomFromGML( '<gml:Point srsName="urn:ogc:def:crs:EPSG::28992"> <gml:pos>275466.0 565559.0 0.0</gml:pos> </gml:Point>'); This ...
2
votes
1answer
307 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: ...
0
votes
2answers
338 views

Applicable OpenLayers settings for WFS layer

I am trying to display a WFS layer on an OpenLayers map. Here are the appropriate portions of GETCAPABILITIES response. <ows:Operation name="GetFeature"> <ows:DCP> <ows:HTTP> ...
0
votes
1answer
295 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. ...
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 ...
12
votes
6answers
1k 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) ...
3
votes
1answer
284 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 ...
3
votes
4answers
923 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
185 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 ...
0
votes
1answer
264 views

how can i render geojson format and gml format?

I can show wms png format my map but i didnt render jeojson and gml format by the way my url is correct service. İn additonal i used same code in my local and i can render local geoserver . plz show ...
1
vote
2answers
803 views

How to batch convert Shapefiles to GMLs?

I know how to do this within Quantum GIS but I have 30+ shapefiles that need to be converted to GML. Is there a Python script sample or plugin for Quantum GIS that I can use to convert my shapefiles ...
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: ...
1
vote
1answer
309 views

Is it possible to have self intersecting polygons in GML or shapefile?

GIS vector data for example GML or shapefile contains polygonal data. Lets assume, we have polygon A which has self-intersection which means that the edges in this polygon intersect with each other. ...
2
votes
1answer
432 views

GML and GeoJSON vector layer can not display in Firefox and Chrome

I have following codes. It works perfectly in IE (GML and GeoJSON vector layer was loaded), but not in Firefox and Chrome without any errors noticed. Please help me to fix this problem. Here is the ...
1
vote
1answer
198 views

openlayers load local gml

I'm trying to load a simple gml file with openlayers, but it doesn't load. Pretty sure it's a simple issue, but I figure out what's wrong. Thanks in advance, Pedro var meu = new ...
2
votes
1answer
754 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 ...
3
votes
1answer
401 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
1answer
368 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 ...
0
votes
1answer
234 views

Does a polygon in a layer intersect with another polygon in the same layer [closed]

I am a CS major with little experience in GIS. I am working on vector polygon overlay. Looking at GML and shapefile data, I realized that a map is made up of a large number of polygons. Does a polygon ...
1
vote
1answer
251 views

How can I import geometries from an invalid GML quickly?

I have the following gml geometry : <gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:2154"> <gml:exterior> <gml:LinearRing> <gml:posList ...
1
vote
3answers
355 views

How can I translate a GML definition of SRS to a usual format (e.g. WKT or PROJ.4)?

From GDAL 1.9.0 a new utility is available: gdalsrsinfo. Although it can yield an XML (GML-based) definition from a source equivalent format or file, it seems that it can only read usual GDAL/OGR ...
1
vote
1answer
366 views

Converting a shp file to a list of latitudes and longitudes

I have a shp file with the latitudes and longitudes for the boundaries for various geographic regions. I'd like to convert the shp file into lists of just latitudes and longitudes for the regions. ...
1
vote
1answer
228 views

How to convert a CompositeCurve to a NetTopologySuite MultiLineString?

I would like to use NetTopologySuite to convert a CompositeCurve to a MultiLineString. I would like to find some code which shows how to convert this to a MultiLineString: <gml:CompositeCurve ...
2
votes
1answer
238 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 ...
1
vote
1answer
310 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 ...
2
votes
3answers
818 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
0answers
362 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: ...
3
votes
1answer
342 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 ...
1
vote
1answer
1k views

OpenLayers.Format.GML parser problem

I'm trying to parse WFS reponse using OpenLayers.Format.GML parser. However, an exception thrown in my try-catch block is TypeError: a is undefined. Any pointers as to what I may be doing wrong will ...
1
vote
1answer
456 views

How does ESRI ArcGIS 10 recognize a WMS CRS?

I'm working on a WMS service with Mars data. Currently the GetCapabilities shows <SRS>EPSG:4326</SRS>. I assume ESRI ArcGIS 10 reads this and therefore the WMS has GCS_WGS_1984 as a ...
1
vote
0answers
166 views

PostGIS reports invalid Curve GML

PostGIS version POSTGIS="1.5.3" GEOS="3.3.1-CAPI-1.7.1" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.3" USE_STATS Postgresql version PostgreSQL 9.1.2 I'm having issues inserting Curves into a ...
2
votes
1answer
359 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
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& ...
2
votes
1answer
417 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"}, ...
4
votes
0answers
247 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 ...
1
vote
1answer
813 views

Anyone try generating C# classes from http://schemas.opengis.net?

I'd like to generate gml/wfs/wms classes from the OGC schemas. Using xsd2code I receive numerous errors, one of them being "Invalid particle derivation by restriction". I'm curious is anyone has ...
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. ...