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.

0
votes
0answers
9 views

Spatial intersection of features (Oracle Spatial) with a line stored in a local gml file?

Interesting sites are stored as polygon features are stored in an Oracle Spatial read only dB. I have a local GML file containing a line (EPSG:31370 - corresponding to a trajectory over a couple of ...
0
votes
0answers
25 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=...
0
votes
0answers
13 views

How do I search for features within another feature using WFS OGC

I understand I can write a GML query like this... <wfs:GetFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://giswebservices....
1
vote
0answers
17 views

Postgis to GML in python or c# [closed]

I know that there is great tool called ogr2ogr. It is a command line to and using it I can get some data from postgres and write it down to GML. Looks great but I would like to have some more ...
3
votes
3answers
78 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
31 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
29 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
37 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
36 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
121 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
242 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
36 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
29 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
118 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
251 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
214 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
85 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
54 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
129 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
201 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
76 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
109 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
134 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
84 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 ...
2
votes
0answers
368 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
334 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
234 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
68 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
78 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
49 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 ...
1
vote
0answers
162 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
49 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
217 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
70 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
29 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
63 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 ...
1
vote
3answers
623 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
155 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
453 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
41 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
246 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
87 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
95 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
103 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
577 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
143 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
38 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 ...