Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gml]

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

3
votes
3answers
50 views

GML validation errors with FME

I am wondering if I am missing something. I am exporting some records from an Oracle dB to a GML2 file using FME. When I validate the resulting XML using online validators I don't find any errors. ...
2
votes
1answer
28 views

gdalwarp - correct for a slight spatial misregistration?

Some Sentinel-2B band images have slight spatial misalignments as I explained on the step forum. https://forum.step.esa.int/t/sentinel-2-tci-10m-level-2-images-slight-spatial-misregistrations/14235 ...
1
vote
1answer
28 views

How can I determine the original spatial reference system of GML coordinates when I have their WGS84 equivalent but no EPSG?

I am querying out spatial information from a SQL database that stores locations that users input on a map as GML snippets. See below for an example: <gml:Point xmlns:gml="http://www.opengis.net/...
0
votes
0answers
28 views

I can not Add GML Layer in OpenLayers 4

I use openlayers 4 and gml layer is file type, but when i add gml layer to map using ol4, i have a ploblem. Gml is polygon but it appear as some point in map. Can not anybody help me? Below is my ...
0
votes
0answers
34 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=${...
0
votes
1answer
52 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
1answer
123 views

What is a GML file?

I am writing some training notes for new QGIS users at my work. I have a section on types of vector files; ESRI Shapefile, MapInfo Tab and GML & GZ so far. We sometimes use the UK Land Registry ...
0
votes
1answer
31 views

Seeking Open source Tools for GML in ArcGIS and gvSIG?

I’m searching open source tools for ArcGIS Desktop 10.5 and gvSIG 2.4 to load and write complex GML data for example INSPIRE GML. I have not the possibility to install interoperability or INSPIRE ...
0
votes
0answers
27 views

Selecting multipatch features in multiple .gml datasets and exporting them as a shapefile

I have hundreds of .gml datasets containing multipatch feature classes that I want to export as shapefiles to a folder. The problem is that none of the List Functions can read them in .gml datasets. ...
0
votes
1answer
67 views

Openlayers - parse WFS features to create Attribute Table

I am trying to parse this WFS to create an Attribute Table with HTML having the fields as headers and their values as attributes. I saved the GetFeature response in a variable (features) which I'd ...
2
votes
1answer
192 views

Using ogr2ogr to convert multiple GML files to a postgis table

I have a folder with 150 .gml (addressbase) files I need to upload to my postGIS/postgres database. After the first gml is uploaded, the rest will be appended to it to form a single table. However I ...
1
vote
0answers
147 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 ...
0
votes
1answer
63 views

Edit and transform XML/GML files

I'm searching for an approach as someone who just started to work with geodata recently. It's about the following situation: I received several XML files. I need to perform a geometric difference ...
0
votes
1answer
45 views

Batch convertion of .tab files to a single .gml using ogr2ogr

My task is to convert .tab files from a directory (C:\Users\Vadim\Downloads\vec\MapInfo\snp) to a single GML file (snp.gml). I use OSGeo4w Shell. So I wrote a following command: ogr2ogr -f "GML" C:\...
0
votes
1answer
87 views

GML axis order problem in QGIS

Is there any reason why QGIS swap axis order if CRS (EPSG:3908) is defined inside GML, for example: <au:geometry> <gml:MultiSurface gml:id="_42d05737-123d-4a52-a655-aef968cd9511" srsName=...
0
votes
1answer
132 views

readFeatures from GML in OpenLayers4

I have an XML data. I simply need to get coordinates of a feature from XML to zoom the map on it. But when I try to read it I get nothing. What am I doing wrong? Have any idea? //got a text from a ...
1
vote
2answers
69 views

Issue with FEMA OGC Web Feature Service returning HTTP 400 error when attempting to download GML file

I'm trying to use an OGC web feature service in some software I am involved in developing. The service is described at the bottom of this page: https://hazards.fema.gov/femaportal/wps/portal/NFHLWMS ...
2
votes
1answer
87 views

Geoserver - PostGIS : WFS-Transaction update exception error-Parsing failed for Point:

I tried to perform a transaction update, but it failed with this exception message: <owsExceptionReport.xsd"> <ows:Exception exceptionCode="NoApplicableCode"> <ows:...
1
vote
1answer
125 views

Transform complex features into simple features GML with HALE

Background information: I'm working with complex GML features and would like to publish my data as a WFS service through GeoServer. I know there is already the application schema support (app-schema) ...
1
vote
1answer
62 views

GeoTools: Encode into GML 3 not working

I want to use GeoTools to convert collection of SimpleFeature objects to GML 3.2.1 geometry. However, I'm dealing with this: Creation of XSD works with both GML 2 and 3. Creation of GML works only ...
1
vote
0answers
314 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 ...
1
vote
1answer
242 views

WFS filter for property name

I need help with WFS filtering for GML. I want to filter only by one property (name of administrative unit) - that is all. Lets say I would like to get the second member of this GML: http://services....
0
votes
1answer
195 views

Adding all polygons in GML from MapServer to openlayers using WFS

I want to show the contents from MapServer (returned as GML given below) as WFS layer in OpenLayers map (OpenLayers v5.0.0). The problem is that only one polygon is added to the map. Here is the code ...
1
vote
0answers
65 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
1answer
62 views

Geoserver WFS Feature Schema Enumeration of Strings

Basically, I'm trying to limit the values that can be provided by a WFS transaction. So the original schema I've got for this simple test feature here <xsd:complexType name="secondfeatureType"> ...
0
votes
1answer
42 views

Why can't I load a WFS into Openlayers: “TypeError: null is not an object (evaluating 'Ob(d).b')”

I am teaching myself the use of Services (WFS) in and OpenLayers itself. As far as I know I managed to get a proper gml-file (GML2, I hope [EDIT: It is GML 3.1, I figured]) from a governmental server ...
0
votes
0answers
88 views

How to read GML version 3.2 in OpenLayers?

I'm trying to read WFS features but the only format is GML 3.2. Is it possible to implement readFeatures method from WFS.format() with GML version 3.2?
1
vote
0answers
135 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 ...
3
votes
0answers
47 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. ...
-1
votes
2answers
189 views

How to assign .xsd for ogr2ogr

GMLAS link: http://www.gdal.org/drv_gmlas.html I want to convert my gml file to shapefiles. But our gml files was created by custom gml schema. We have their application schema, xsd. But i don't know ...
1
vote
0answers
64 views

GML of geostationary satellite projection

I'm trying to convert geostationary satellite projection from Proj4 string to GML with GDAL. I use this Proj4 string: +proj=geos +lon_0=104.5 +h=35785865.7741 +x_0=0 +y_0=0 +a=6378160 +b=6356775 +...
0
votes
0answers
27 views

Converting Personal geodatabase to GML format using ArcGIS Desktop? [duplicate]

I am working on ArcGIS 10.3. Does anyone know how to convert a personal geodatabase into a GML format?
1
vote
2answers
59 views

Geometry not showing when importing Dutch BRT-files (GML)

After importing a couple of gml files (Dutch BRT-files) into QGIS I noticed that some of the layers didn't seem to contain any geometry, the database (attribute table) is there, but no geometry is ...
0
votes
0answers
138 views

Batch converting GML/XML to Shapefile - Getting glitches

We have been using the bellow script for a few years to convert and combine GML data into new Shapefiles for each layer. 99% of the time it works fine, but we have run into the same glitch that is now ...
1
vote
3answers
538 views

Reading GML features in OpenLayers 4?

I use OpenLayers 4.6 and I want to read a feature from GML string. The GML looks like: <?xml version="1.0" encoding="UTF-8"?> <gml:Polygon xmlns:gml="http://www.opengis.net/gml" xmlns:...
1
vote
1answer
137 views

GeoTools includes repeated prefix in GML output

When attempting to write out GML encoded features that were originally collected using the Geotools WFS plugin (gt-wfs-ng), it looks like the GML output is incorrectly duplicating the feature's prefix ...
3
votes
1answer
382 views

Convert gml to raster in QGIS

I have a dataset of type citygml (*.gml). It includes information about buildings and their rooftypes. you can find a sample file here: https://www.opengeodata.nrw.de/produkte/geobasis/3d-gm/3d-...
1
vote
0answers
40 views

WFS in OpenLayers4 returns data but doesn't display any [duplicate]

I can't get this WFS to work. I tried to stick to the OL-WFS examples - no luck. let vectorLayer = new ol.source.Vector({ format: new ol.format.GML(), url: function(extent) { return 'https://...
0
votes
0answers
200 views

Error: The requested Style can not be used with this layer

I'm trying to calculate the area of a polygon using the code from this page and I'm getting the following error The requested Style can not be used with this layer. The style specifies an ...
1
vote
3answers
75 views

Getting writer in FME to output as appointed filetype while using FilenamePartExtractor?

My goal is to merge all shapefiles in the same folder and outputting them as a gml with name of the folder. So it looks like this: Main Dir Set1 roads.shp buildings.shp Set 2 roads.shp ... I ...
0
votes
0answers
77 views

Using WMSGetFeatureInfo() of OpenLayers in Firefox?

I'm trying to read features from the response of an AJAX request using new ol.format.WMSGetFeatureInfo().readFeatures(parameter).The response format is application/vnd.ogc.gml (XML). The thing is that ...
2
votes
1answer
92 views

What is the conceptual meaning of featureMember in GML?

In GML there is this tag: <gml:featureMember> I am looking for the conceptual meaning of it, but i only find syntax explanations.
0
votes
1answer
28 views

Check whether GML contains elevation info?

How can I check in QGIS whether a GML file has elevation information, or z coordinates? It definitely has some overlapping polygons, but I'm not sure whether the ordering of the overlap is specified ...
1
vote
0answers
34 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 ...
0
votes
1answer
1k views

Add GML Layer in OpenLayers 4

I'm using OpenLayers 4 to build a web map. Now I'm trying to add a GML layer to the map but only one feature of the layer/GML is painted in the map. So I don't know what could be wrong. The way I am ...
2
votes
1answer
528 views

Load LoD2 files into QGIS

is it possible to load the geometry of LoD2 files in CityGML format (gml:LinearRing from bldg:GroundSurface) as GML layer in QGIS? Here is an example content of a citygml file: <?xml version="...
1
vote
1answer
136 views

Geoserver WFS-T insert exception

I'm creating a new WFS-T feature but I'm getting the below exception when I try to send the feature: No such feature type http://IP:PORT/geoserver/CARBONITA:bairros link to gist: https://gist....
1
vote
0answers
36 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
1answer
47 views

OGC Filter Specification in Xpath

I've got some XML documents which conform to a known schema which include geometries in GML format. I'm looking to perform validation on the XML using XSD and Schematron, but I'll need some way of ...
1
vote
0answers
56 views

Encode a shapefile in gml 3.2 [duplicate]

I am not so seasoned about gis and geotools, I am trying to encode a feature collection obtained by a shapefile in gml 3.2. Here is my code: @Test public void transformAccumuliDiFranaShapeToGml32() ...