Questions tagged [gml]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k 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 ...
dingobar's user avatar
0 votes
1 answer
1k 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 ...
apfelnymous's user avatar
0 votes
1 answer
262 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:\...
Vadim's user avatar
  • 115
2 votes
1 answer
2k 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=...
Zoran Kokeza's user avatar
0 votes
1 answer
2k 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 ...
Nat.B's user avatar
  • 3
1 vote
2 answers
192 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 ...
Burrow's user avatar
  • 441
3 votes
1 answer
840 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:...
GeoFresher's user avatar
1 vote
1 answer
386 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) ...
elbarado's user avatar
  • 187
1 vote
1 answer
528 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 ...
Stanislav Dušek's user avatar
2 votes
0 answers
1k 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 ...
SunDay's user avatar
  • 21
2 votes
2 answers
4k 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....
Etomanon's user avatar
0 votes
1 answer
2k 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 ...
M J Learner's user avatar
2 votes
0 answers
205 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?...
raido's user avatar
  • 21
2 votes
1 answer
247 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"> ...
DerekR's user avatar
  • 163
0 votes
1 answer
330 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 ...
Janne Jakob Fleischer's user avatar
1 vote
0 answers
385 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 ...
Vlad.d's user avatar
  • 155
2 votes
0 answers
96 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. ...
Felipe G. Nievinski's user avatar
1 vote
2 answers
1k 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 ...
Umut Üçok's user avatar
0 votes
0 answers
100 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?
Fred's user avatar
  • 11
1 vote
2 answers
456 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 ...
Koen Schrauwen's user avatar
1 vote
3 answers
2k 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:...
abd0991's user avatar
  • 452
1 vote
1 answer
398 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 ...
TwentyMiles's user avatar
4 votes
1 answer
2k 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-...
user117408's user avatar
1 vote
0 answers
44 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://...
ill's user avatar
  • 181
1 vote
0 answers
1k 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 ...
Xpleria's user avatar
  • 113
1 vote
3 answers
691 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 ...
B.Quaink's user avatar
  • 455
0 votes
0 answers
161 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 ...
Fran1911989's user avatar
2 votes
1 answer
514 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.
user3357358's user avatar
0 votes
1 answer
60 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 ...
Richard's user avatar
  • 3,289
1 vote
0 answers
73 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 ...
Francesco's user avatar
  • 271
0 votes
1 answer
4k 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 ...
Fran1911989's user avatar
3 votes
1 answer
2k 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="...
Stefan's user avatar
  • 31
1 vote
1 answer
261 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....
Caio César's user avatar
1 vote
0 answers
49 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 ...
Zoran Kokeza's user avatar
1 vote
1 answer
117 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 ...
GHC's user avatar
  • 123
1 vote
0 answers
91 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() ...
Francesco's user avatar
  • 271
0 votes
1 answer
406 views

Deal with large GML files with GeoTools

I am not so seasoned at GeoTools libs, I am trying to transform a large (near 60K features) GML file. I want to change its CRS and features coordinates accordingly. The code I have is basically this: ...
Francesco's user avatar
  • 271
0 votes
1 answer
545 views

Convert GeoJSON to GML using an old GeoTools library

I'm trying to convert a GeoJSON file to GML 3.1.1 using an old org.geotools lib. geotools lib are 2.7.0 version. Sadly, upgrading is not an option. Here is the relevant part of my code: ...
Francesco's user avatar
  • 271
2 votes
0 answers
228 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 ...
Riza's user avatar
  • 121
0 votes
1 answer
218 views

GML vector layer not rendering polygons

I regularly use land registry data from https://www.gov.uk/government/collections/download-inspire-index-polygons however at present the .gml, when adding a vector layer, renders points and not ...
Neil Harvie's user avatar
1 vote
1 answer
310 views

Add Points and Polygons to geoscript layer and write as GML

I have some geoscript code combines WFS and shapefile polygon layers together and writes the result as a GML file. It works fine. However, the client requires a new feature which should combine ...
zhangjinzhou's user avatar
5 votes
0 answers
196 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:...
medley56's user avatar
  • 365
1 vote
0 answers
427 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....
zhangjinzhou's user avatar
2 votes
2 answers
810 views

Creating a Geoserver App-Schema mapping file for GeodesyML

EDIT: This appears to be a version dependent issue! When I posted the question I was using Geoserver 2.11.1. I upgraded to the 2.12 nightly SNAPSHOT and I can now general GeodesyML output. The problem ...
medley56's user avatar
  • 365
0 votes
1 answer
35 views

Where to find a Placename ID for Tennengebirge for use in GML?

I am new to GML and trying to create an Instance file - I need the ID for Tennengebirge but I am not sure how to find the Inspire ID for this Protected Site?
terrifurness's user avatar
13 votes
1 answer
3k views

Is srsName of "EPSG:4326" spec compliant in GML 3.1 / 3.2?

I sometimes see srsName="EPSG:4326" in GML documents (e.g. https://postgis.net/docs/ST_GeomFromGML.html, although my particular source is not public). The intent (except perhaps for axis order that ...
BradHards's user avatar
  • 12.9k
1 vote
0 answers
152 views

Drawing GML data in OpenLayers2 [closed]

I have a simple application that uses OpenLayers 2.13.1 to draw GML data pasted in a text box. There is already some default GML preloaded in textarea and it works fine. When you press "Add feature" ...
Marin Leontenko's user avatar
2 votes
1 answer
1k views

Reading in a single polygon from a shapefile

I have a shapefile/GML file with many thousands of polygons insides a specific layer. I know the set of IDs that reference the set of polygons that I want to get the coordinates data from. Is there a ...
h.l.m's user avatar
  • 121
1 vote
1 answer
913 views

Openlayers 3 + WFS GML2 layer wrong projection and displaying on wrong location

I have requested vector layer through WFS GetFeature from GeoServer in GML2 format but when displaying WFS layer its showing on different place. same layer i have requested in format Geojson its ...
Seema Barate's user avatar
0 votes
1 answer
212 views

How to convert my GML/KML/SHP files into deegree workspace?

I am newbie in geographic and want to convert my GML file to deegree workspace. What I did so far I have download deegree and install it on local. Run the application and its service Now, I want ...
Gabber's user avatar
  • 101

1 2
3
4 5
7