Questions tagged [gml]

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

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
134 views

How to set up Geoserver app-schema feature chaining?

I am using Geoserver 2.12 with the application schema plugin to map a PostGIS database schema to the GeodesyML schema. I need to set up a WFS request that returns GeodesyML output such as: <wfs:...
3
votes
0answers
516 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 ...
2
votes
0answers
43 views

Topology Error building polygon

I retrieve a response from the wfs_gnde from BKG in Germany using the following URL and request. http : // sg.geodatenzentrum.de / wfs_gnde <GetFeature version='1.1.0' service='WFS' ...
2
votes
0answers
656 views

GML/SVG for indoor map in OpenLayers 4?

I am new to GIS world and trying to incorporate OpenLayers with GML or SVG. I am building a map engine and one of the features should be support of indoor maps. It can be accomplished with a static ...
2
votes
0answers
67 views

Software support for GML 3.3 Linear Referencing?

Are you aware of any software supporting import/export of Linear Referencing data in GML version 3.3 format? Apparently no software application, proprietary or FOSS, currently supports it explicitly. ...
2
votes
0answers
136 views

Protect spatial data with digital signature

I've been asked to provide a solution to protect spatial data (format .shp) with digital signature that are bundled together into a single file, much like signed PDF for example. I've been googling ...
2
votes
0answers
64 views

GML Filename gives layer name of “PREDEFINED” when imported as vector layer

I am new (today) to QGIS and I have hit a problem almost immediately. Basically, I am trying to read in a number of GML files, each with unique names. However when I import them into QGIS they get ...
2
votes
0answers
3k 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 ...
2
votes
0answers
249 views

ogr2ogr: export intersected gml using shapefile

I'm trying to do the same as the ogr2ogr example given by https://gis.stackexchange.com/a/119404/6458 The difference is that my inputs are a GML and a shapefile. Export.shp should only contain the ...
2
votes
0answers
227 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: Install Productivity Suites v 3.4.1 ...
2
votes
0answers
166 views

extraction of metadata from gml file

I am in the need to extract metadata in XML format from a gml file following the standard ISO 19115 Can anyone suggest to me how to do that Is there any open source for the same
2
votes
0answers
738 views

Import GML data in SQL Server Spatial

I have GML file with Application Schema whose data I need to import into SQL Server Spatial. I have been creted database structure with all thing that I need in database, and now I need to fill it ...
2
votes
0answers
995 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 ...
2
votes
2answers
970 views

Open with QGIS a GML file (INSPIRE schema) created with HALE studio

I'm trying to export in GML the transformed data of "Basic hydrography example" of hale studio and to add the file in QGIS, using the plugin GML application schema toolbox. The GML exported should be ...
1
vote
0answers
31 views

GML file provides wrong coordinate system

I have the following field 51A. It is described by the following GML excerpt: <gml:featureMember> <ogr:av_export_temp.ihkulroo fid="av_export_temp.ihkulroo.183"> <ogr:...
1
vote
0answers
40 views

How to show Turn Restriction data from OS MasterMap Highways on the map?

I want to obtain the location and details of all turn restrictions from the OS MasterMap Highway Network datasets I have. I tried loading the Turn Restriction dataset into QGIS but it does not read ...
1
vote
0answers
191 views

GML file converted to ESRI shapefile with ogr2ogr missing spatial reference information

I am trying to convert Sentinel-2 cloud masks from GML format to ESRI shapefiles. I have managed to use ogr2ogr in a python script as described in the answer to Using ogr2ogr to convert GML to ...
1
vote
1answer
46 views

Changing name of file download from browser app?

I am developing browser application using MapServer and JavaScript. I've got part where on map click I get FeatureInfo about an object: function getFeatureInfoGML(map){ var openwindowhandle=...
1
vote
0answers
93 views

No geometry when importing 3D building model GML into PostGIS

I'm attempting to import a GML file containing 3D building models into PostGIS using ogr2ogr. ogr2ogr -f PostgreSQL PG:"host=${hostname} port=${port} dbname=${db} \ user=${user} password=${...
1
vote
0answers
640 views

Reading data to geopandas using WFS - GML format

This relates to the question here: Reading data to geopandas using WFS? Is there a way to to do the same with a service that does not supply the data in GeoJSON format, but in GML-format? The ...
1
vote
0answers
106 views

Transform GML to Geometry (PostGIS) in GeoKettle

How can I transform GML (saved in XML file) to Geometry type? I've noticed function 'Geometry from GML' in Calculator but it needs string value with GML. Is there any way to extract it from XML file?...
1
vote
0answers
248 views

OpenLayers WFS service with GML

I'm trying to get features from WFS service, this service using stored queries. I've managed to retrieve data both with axios and XMLHttpRequest. But the problem in the reading features and showing ...
1
vote
0answers
47 views

Use GeoTools to read WaterML files

I want to read WaterML 2.0 time series. I am totally new to WaterML but I read it rely on GML 3.2. It would be great to use GeoTools to do that, maybe extending the GML classes. Is there some docs or ...
1
vote
0answers
42 views

feature with multiple id used for style

I have features with multiple themeID, for example, themeID=49 and themeID=53, and when I load them into qgis it shows attribute themeID=(2:49,53). The problem is that I use themeID in sld to choose ...
1
vote
0answers
279 views

Upload GML to Geoserver as Layer through REST

I have to upload a GML file to my geoserver through REST. I tried to use importer but it doesn't work (even manually). More specifically, the importer module never generate tasks automatically for GML....
1
vote
1answer
132 views

HALE: GML validation errors

I try to export a GML file from HALE editor but the validation has always errors with this text: The value '' of attribute 'gml:id' on element 'ps:ProtectedSite' is not valid with respect to its ...
1
vote
0answers
468 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 "D:\path\to\...
1
vote
0answers
52 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 ...
1
vote
0answers
1k 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> <gml:...
1
vote
0answers
294 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
179 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: http://www.schleswig-holstein.de/LVERMGEOSH/DE/Service/Download/Testdaten/...
1
vote
0answers
231 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
0answers
304 views

Parse GML with OpenLayers

In our project we do a GetFeature request to a WFS service. This service returns some GML. To parse this GML, we are playing with the GML parser of OpenLayers. This is working as long the GML isn't '...
1
vote
0answers
387 views

Tutorials related to the transformation of building geometries from CityGML to KML/Collada?

I have some 3D building geometries in CityGML that I want to transform into KML/KMZ. Apparently the way KML works is to build the geometry in Collada and do the georeferencing in the actual KML file. ...
1
vote
0answers
78 views

OpenLayers2 - Get LayerName from GML Response object

I am using the WMGetFeatureInfo control in OpenLayers to select items from my layers and return GML. I use this to get an attribute from the GML; var val = evt.features[0].attributes.UID; //Where ...
1
vote
0answers
64 views

Problem with Taverna?

I want to use Taverna to call an OGC WFS, and the file returned from WFS is GML, but what I want is SVG, so I have to convert GML to SVG by using Taverna. The Method I used ExecuteProcess_gml2svg, ...
1
vote
0answers
338 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 ...
1
vote
0answers
110 views

Getting started with storing LoST and GML searching

I am working on a logging and search database application. The application will receive event records containing XML LoST values (RFC5222 Location-To-Service-Translation). These records will be ...
0
votes
0answers
12 views

Validating schema of my XSD wth GML with GeoTools

I would like to control if my GML file is valid with my actual XSD using GeoTools. I found something here: GML2 Parsing TestSchema Example. But I don't know if it's a good way to do what I want. ...
0
votes
0answers
20 views

Access Z values of GML features in QGIS

I want to extract the Z values of polygons from a GML file with a python script. I can't use the field calculator, since you can't edit GML files in QGIS. Ideally, I want to extract the Z values from ...
0
votes
1answer
12 views

GeoTools and JTS dependency match

I currently use outdated versions of JTS and GeoTools in my Java application. GeoTools is used for parsing GML structures into JTS Geometry objects. However, I do not know how to update the libraries ...
0
votes
0answers
51 views

Convert cityGML to SHP?

I want to convert cityGML files into shapefiles which show the 3D-objects from above in 2D. It would be also nice to keep the height of the objects in the attribute table or as z-value. I want to use ...
0
votes
0answers
135 views

How to correctly assign (apply) XSD schema to GML using ogr2ogr?

My task is to convert data from ESRI fileGDB to single GML, applying certain XSD schema (a kind of state standard). So, I used OSGeo4W Shell to write the following command: ogr2ogr -f "GML" -oo ...
0
votes
0answers
25 views

Reading features from GML OL3

I am trying to read features with ol.format.GML (using OL3). As a result I get feature but not it's geometry. GML file looks like this: var gmlString = '<?xml version="1.0" encoding="utf-8" ?> &...
0
votes
0answers
37 views

OpenLayer Impossible to load GML file with ESPG:3947

I try to load my gml file with this code but it doesn't work. Did I forgot something ? import Map from 'ol/Map' import Layer_Tile from 'ol/layer/Tile' import source_OSM from 'ol/source/OSM' import ...
0
votes
0answers
37 views

Impossible to display my GML file

I would like to display my GML file but I don't understand why nothing appear in the map: code: import Map from 'ol/Map' import Layer_Tile from 'ol/layer/Tile' import source_OSM from 'ol/source/...
0
votes
0answers
60 views

Convert list of GML coordinates into WKT

I am working with a NetCDF file. One of the attributes of the file is its footprint given as just a list of GML coordinates e.g. #ncds is a netCDF dataset >>> ncds['METADATA/EOP_METADATA/om:...
0
votes
0answers
29 views

Why a rectangle area is described as a 13-point polygon in a GML file?

I have the following field called 51A: I have the following excerpt from the GML file where it describes the 51A field: <gml:featureMember> <ogr:av_export_temp.ihkulroo fid="...
0
votes
0answers
14 views

posList conversion to area in square meters

I have the following GML where I would like to place these coordinates on a map and calculate the square meters of the polygon. I am completely at loss here as I do not know where to begin. Any ...
0
votes
0answers
36 views

How do I join an area that has been split into many .dwg or .gml files?

How do I merge a bunch of adjacent (1) dwg or (2) gml files into a continuous map using free software or online? Thanks.