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

learn more… | top users | synonyms

0
votes
1answer
228 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 ...
3
votes
1answer
176 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"> ...
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 ...
3
votes
1answer
285 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
925 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
0answers
315 views

OGR-Driver GML axis order handling (GDAL, QGIS)

By default the OGR-Driver will swap the axis order to longitude, latitude for geographic coordinate systems. "Since OGR 1.8.0, the GML driver has coordinate system support. This is only reported ...
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
760 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
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 ...
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 ...
3
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
272 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 ...
0
votes
1answer
240 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
311 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. ...
3
votes
1answer
407 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 ...
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
1answer
368 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
229 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 ...
1
vote
1answer
312 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 ...
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 ...
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 ...
5
votes
1answer
260 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", ...
2
votes
3answers
823 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
363 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: ...
2
votes
2answers
282 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 ...
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 ...
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
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 ...
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
2answers
813 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 ...
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 ...
1
vote
1answer
458 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
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
419 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
249 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 ...
2
votes
1answer
361 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 ...
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 ...
10
votes
3answers
328 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 ...
4
votes
1answer
435 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 ...
1
vote
1answer
526 views

OpenLayers GML Polygon Performance

I'm working on a project where we have a large number of very detailed polygons being displayed on a image using Openlayers. The polygons are added to the map through a GML feed. We are having end ...
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 ...
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. ...