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

learn more… | top users | synonyms

1
vote
1answer
37 views

Loading GML data into Postgres with ogr2ogr

I'm working with a new OS dataset, Highways Network, trying to get it loaded into Postgres and set up in some kind of usable state. I've loaded all the data already, but it seems some elements of ...
1
vote
1answer
24 views

Storing GML Polygon in PostGIS 2, ERROR: unknown spatial reference system

I am receiving GML as part of a larger XML message. When I receive the XML it is unmarshalled to Java objects. I have no rights to alter the schemas or the generated Java code. Therefore, I later have ...
1
vote
0answers
39 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
0
votes
0answers
16 views

Transforming GML into image?

I am looking for a simple way to transform a GML file into an image. I have a number of SLD files to provide the formatting. In the past we used an XSLT style sheet to transform the GML into a SVG ...
0
votes
1answer
27 views

Server(Mapserver) does not support the gml coverage

I'm testing wcs(2.0.1) through ogc compliance test and some of the test cases are getting failed with an error : The server does not support the gml coverage. Test case id : cs2:get-kvp-core-req12 ...
4
votes
2answers
207 views

Is it valid GML if the boundary of a polygon intersects itself?

Is it valid GML if the boundary of a polygon intersects itself? E.g. I have this polygon consisting of some gml:LineStingSegment and one gml:Arc: My task is to import GML based data (german ALKIS ...
1
vote
2answers
27 views

WPS processing WFS 2.0 INSPIRE data

I am writing in the hopes that there is somebody here that might know/use a GIS server solution, that has WPS functionality which would allow me to use data from a WFS 2.0.0 GIS service, which serves ...
2
votes
2answers
113 views

Using zoo-project WPS service in QGIS WPS-Client

I've created a python wps service in the zoo-project framework, which is used to calculate a Line of Sight based in on a start point, an end point and a start point height. The service works fine if i ...
0
votes
1answer
17 views

OpenLayers3 WFS custom schema

I'm having some trouble parsing the following WFS response into a feature: <?xml version="1.0" encoding="UTF-8"?> <wfs:FeatureCollection numberOfFeatures="1355" ...
1
vote
0answers
59 views

Generating C# classes for gml.xsd using MS Visual studio xsd tool

With Microsoft Visual Studio 2010 comes a tool called xsd which can automatically generate C# source code to easily deal with XML files corresponding to a given schema. I have a very complex XSD ...
0
votes
0answers
38 views

Export data from gdb to gml

How do I export my *.gdb/shp to gml files? I am new to this and I have no idea were to start: so tip and tricks are welcome. (We use: data interoperability license and we use AGS 10.1 and Arcmap ...
3
votes
0answers
37 views

QGIS won't display GML features

I have a 90 MB GML with about 3000 features but QGIS only shows the first three. The fourth feature is a multipart polyline. This an the extract of the feature: <?xml version="1.0" ...
2
votes
1answer
32 views

Transformation from EPSG 2178 to EPSG 4326 gml.file?

How can I transform .gml file from EPSG 2178 to EPSG 4326? I used the following without success: gdaltransform -s_srs EPSG:2178 -t_srs EPSG:4326 "file1.gml"
0
votes
1answer
90 views

How to convert data from GML to GeoJSON using ogr2ogr?

How should I convert GML to geojson data using ogr2ogr. I used : ogr2ogr -f "GeoJSON" bd.geojson bd.gml But in this case I have only part of my data , not all. I tried add -append , but it didn't ...
4
votes
2answers
72 views

Modelling per-segment attributes in GML LineString

This is not a software-specific question, but rather a question about how to represent some concepts in a GML LineString. It has to be GML, for policy reasons. Consider a GML LineString consisting ...
1
vote
0answers
48 views

Unable to import .gml MasterMap files

I'm new to MapInfo and am struggling to import .gml OS mastermap files. The .gml is created by converting the .gz data that OS provide to .gml using the following batch file: FOR /R ...
3
votes
0answers
43 views

ogr2ogr imports GML data (not from OSM) to Postgis but without the other_tags “hstore”-column

The problem I'm encountering some issue trying to use ogr2ogr to import some GML input data (not OSM) into Postgres. I'm trying to use COLUMN_TYPES=other_tags=hstore to store all the fields not ...
1
vote
0answers
93 views

Loading GML schema file on QGIS

I am Very New to GML format. first of all, I have came to the assumption that a schema file will display gml in a particular style as defined by the schema, similar to the way i load a .qml on a ...
3
votes
2answers
130 views

Is GeoJSON an OGC format

I am using geometries in a JavaScript page and it is best to use JSON objects rather than GML which is XML based. I heard of GeoJSON, but is it an OGC open format?
1
vote
0answers
23 views

Can GML contain symbology?

I know that KML can contain symbology in it. I understand that GML is the open version of it. Can GML contain symbology too?
1
vote
1answer
37 views

Is it possible to convert a .shp file to .gml?

Is it possible to convert a shapefile to a gml file? If so, how and using what tools?
2
votes
1answer
76 views

How to calculate the bounding box of a GML/XML file from a WFS getFeature request?

I would like to know if it is possible to get the bounding box from a geometry returned by a WFS service. An example of WFS feature request: ...
0
votes
1answer
139 views

Converting multi-geometry GML with ogr2ogr not working

I am having difficulties with GML loading in PostGIS with ogr2ogr. It is a GML of buildingparts containing both polygons and (label)-points. In this example (below) I have a selection of 9 objects. ...
0
votes
2answers
54 views

Skip a specified input layer in ogr2ogr

I am using ogr2ogr to load data from multiple GML files into PostGIS. As shown in the ogrinfo output below, each GML file has multiple layers. Had to open data source read-only. INFO: Open of ...
1
vote
0answers
19 views

How WCS returns GML to Client?

I have searched many information in Internet but don't know for example how to implement a WCS service like GeoServer. I suppose they a Geo Sever need to use some (GML Schema like version GML 3.2.1 to ...
0
votes
1answer
46 views

Merge adjacent polygons

I want to write software that merges groups of (mainly) adjacent polygons. For example, merge the US counties into sales regions. Then, display either the boundary of these sales regions or fill them ...
0
votes
0answers
188 views

Loading GML files to Mapinfo

I'm currently using MapInfo 12.5, I need to view certain gml files that I get (.gml format) using Mapinfo and use it to manipulate different layers. When I try to use the inbuilt "Import table" in ...
2
votes
2answers
172 views

Bulk conversion and import of OS MasterMap .gz files to .shp in ArcGIS Desktop

I have 91 .gz files procured from the Ordnance Survey and would like to import them all to ArcGIS as shapefiles. I know that the Quick Import tool in the Data Interoperabilty extension performs the ...
0
votes
0answers
42 views

Load gml strings from an excel file

I have some gml strings in an excel file (example: gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="xx" srsDimension="xx" gml:pos xx /gml:pos /gml:Point). I want to load these in ArcMap, but ...
0
votes
1answer
39 views

stylizing/symbolize openlayers based off GML

I am completely new to OpenLayers. I created a GML using QGIS and would like to call data from it. It isn't stylized (specific icons per attribute). I would like to stylize/symbolize the data using ...
0
votes
0answers
339 views

How to load GML to OL3?

I'm trying to load gml into openlayers3 there is the code: <html> <head> <title>Vector layer example</title> <link rel="stylesheet" href="ol3/ol.css" ...
2
votes
1answer
630 views

Upload KML / GML / GeoJson to Geoserver through Rest API

What is the best option, if any, to upload a vector format like GeoJson, and or GML to Geoserver? The environment from which to upload will be a client web-application, so i cannot use curl. In the ...
0
votes
0answers
246 views

Problem with ST_IsValid: Unknown geometry type: 9 - CompoundCurve

The following is an example of a gml:Curve that was loaded into Postgres using FME. <gml:Curve srsName="urn:ogc:def:crs:EPSG::27700" gml:id="os.vmd.ny.38124.geom"> <gml:segments> ...
1
vote
0answers
59 views

ogr2ogr: export intersected gml using shapefile

I'm trying to do the same as the ogr2ogr example given by http://gis.stackexchange.com/a/119404/6458 The difference is that my inputs are a GML and a shapefile. Export.shp should only contain the ...
0
votes
1answer
26 views

What is the standard for GML? What fields are standard/required

I'm pushing some GML data into a Web Feature Service. And I want to keep to the GML/WFS standards when pushing my data. Could anyone point me towards a document that shows me this. Or a quick ...
1
vote
2answers
128 views

How to request paginated or filtered data from WFS 2.0?

I want to download a data set from a WFS 2.0 server via HTTP GET, with curl for instance. $ curl -X GET http://example.com/wfs/?service=WFS&request=GetFeature ...
0
votes
0answers
77 views

GML geometries are not rendered

I tried to view a GML file and I have a problem with viewing of polygons from a feature type ps:ProtectedSite with QGIS. This feature contains a MultiSurface with a surfaceMember with a ...
0
votes
0answers
15 views

ArcByCenterPoint - coordinates of start/end points [duplicate]

Given an ArcByCenterPoint, defined by: center position (lat,lon in WGS84) radius (meters) startAngle (degrees) endAngle (degrees) how can we compute the position (lat, lon) of start/end ...
1
vote
2answers
146 views

Getting attribute table from WFS data source

I am attempting to get some WFS 2.0 INSPIRE data from the Finnish meteorological institute into a table format of some kind. Is there any software which can easily grab the attribute data for the WFS ...
-1
votes
1answer
90 views

sample xsd files from geographic sources

Where can I download sample xsd files for different features like road,rail,river,land etc.I need them urgently for checking the working of my project which works on the schema of geographic data.
1
vote
2answers
57 views

PostGIS ST_GeomFromGML giving strange result

I'm currently running Postgres 9.1 with PostGIS 2.0. I am trying to create a polygon geometry from the following GML: <gml:Surface gml:id="ID_63_1413425013514_23322" ...
1
vote
0answers
114 views

JTS Geometry to GML3.1 encoding

I searched all the internet and I didn't find a solution to my problem. I want to convert a JTS geometry to a GML3.1 geometry. Geo tools says that have support but the have not (please check encode ...
1
vote
0answers
68 views

How to load ALKIS (GML3) data in GeoTools

I wonder how I can load ALKIS GML (German gov geo data) in GeoTools. Here is a small sample dataset from the government: ...
1
vote
0answers
61 views

Disabling XML schema when using GML3 decodeFeatureCollection in GeoTools

I wrote some code based on http://docs.geotools.org/stable/userguide/library/xml/geometry.html#id6 GML gml = new GML(Version.GML3); try { InputStream in = new FileInputStream("file.gml"); ...
1
vote
1answer
241 views

How to get GML layer CRS with OGR Python?

I have a GML layer obtained from a WFS that looks like this: <wfs:FeatureCollection xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:wfs="http://www.opengis.net/wfs" ...
2
votes
0answers
73 views

Converting GML to Geodatabase format by using Productivity Suite software

I am using ArcGIS desktop 10.2 version and would like to import MasterMap Integrated Transport Network from Digimap to ArcGIS, So I was following the steps: 1 Install Productivity Suites v 3.4.1 2 ...
1
vote
2answers
74 views

Import file format with colors

I am very new to QGIS, so please excuse me if my question seems stupid to you. I have a small question regarding setting manually colors for points and lines. I have a bunch of nodes and vertices to ...
2
votes
1answer
169 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 ...
1
vote
1answer
281 views

Geoserver 2.5.2 upgrade - now GeoJSON and GML WFS not working

I've recently migrated Geoserver from a Geoserver 2.1 to a clean install of Geoserver 2.5 and copied across my data files. However, I'm not finding that clicking Layer Preview, going to the All ...
0
votes
0answers
83 views

GML code with two objects

I have two objects to encode in GML: A road (Name: E22, Type: Motorway, Geometry: Line) A municipality (Name: Lund, Inhabitants: 100 000, Geometry: Polygon) My code is writen as below. Can ...