Questions tagged [gml]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

How to add GML data on arcgis javascript map application?

I am using a wfs service using ajax query. So it returns me a xml based response (GML2 format) like following. (But does not return a json.) <wfs:FeatureCollection xmlns:xs="http://www.w3.org/...
1
vote
1answer
26 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
21 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 ...
1
vote
1answer
13 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
62 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
140 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
28 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
39 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
39 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
79 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:...
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:...
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.
0
votes
1answer
78 views

How to use GDAL /vsizip/ to access GML file(s) from Sentinel-2 zip package

Which is the correct way to write the path through the *.Zip S2 imagery package to rich the *.GML vector file(s) ? Does someone knows how to correctly write the path to *.GML file for using it with /...
0
votes
0answers
50 views

Making map with Python from FGDB or GML or GPX or PostGIS or SOSI and TIFF files

I am a complete beginner in GIS domain and I would say intermediate level with Python. I would like to use Python to plot a simple map displaying the hiking trails of Norway to prepare my future ...
0
votes
1answer
57 views

GeoServer Application Schema GML output without geometry

I am working on an Application Schema example. The dataset is being built, the layer will be rendered as WMS, but the WFS-GML Output produces an empty tag where a Point geometry would be expected. I ...
2
votes
1answer
325 views

Read GML using Java

I have a use case on reading and extracting data from GML (Geography Markup Language) using Java. There is a sample file in GitHub by clicking here. The imported packages in Java were as follows ...
1
vote
1answer
52 views

prevent ogr2ogr from generating new fid attribute field

I am exporting data from PostGIS to gml using python script with ogr2ogr. But the output generates unwanted new field "fid" that contains the following string: "sql_statement.0" , "sql_statement.1", ....
1
vote
1answer
46 views

GeoTools GML parser sorted features collection

I am using the following code to parse GML file in java: File gmlFile = new File("path/to/gml/file"); InputStream gmlInStream = new FileInputStream(gmlFile); GML gml = new GML(Version.WFS1_0); ...
0
votes
0answers
32 views

WFS 2.0 with get request outputformat gml3 returns body using wfs 1.1.0 schema, is this expected?

I am making GET requests against a wfs service specifying version 2.0, when I do not specify an outputformat in the request it returns a body using the schema namespace for wfs 2.0 (wfs:), when I ...
2
votes
2answers
38 views

Feature becomes invalid when reading through WFS/GML in GeoServer [duplicate]

I'm working with the TIGER shapefiles, specifically the Tract layer, and my I'm trying to read selected features via WFS using GeoServer, then save those to a new layer. However, when the shapes come ...
1
vote
1answer
99 views

Display the gml:id of WFS layer as an attribute in QGIS

I have loaded a WFS layer in QGIS and want to display the gml:id of the features in the attribute table. Is this somehow possible? I can see the gml:ids in other applications (ex FME).
0
votes
1answer
159 views

OGR2OGR - converting a GML file to GeoJSON

I'm struggling to use ogr2ogr to convert a GML file into a GeoJSON file. My input is zipped GML files with several layers. I'm only interested in the layer with name 'TopographicArea'. I've tried ...
1
vote
0answers
43 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 ...
0
votes
0answers
34 views

Encoding non-mandatory feature properties in WFS/GML?

In what ways can non-mandatory feature properties be encoded in feature type schema (WFS 2.0/GML 3.2.1 with GML features)?
3
votes
1answer
42 views

Understanding GML structure for validation

I'm failing to convert this GML v3.2 XML and I'm not sure why: <?xml version="1.0" encoding="UTF-8"?> <gml:MultiGeometry xmlns:gml="http://www.opengis.net/gml" srsName=""> <gml:...
2
votes
0answers
46 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' ...
4
votes
3answers
330 views

Trying to import Dutch Infrastructure GML using OGR GMLAS driver, but no geometries?

I have some Dutch Infrastructure GML files that I'm trying to display in GeoServer. Step 1 is to import the GML into PostGIS and while I can make it work using the OGR GML driver, I end up with a ...
1
vote
0answers
215 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
47 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
88 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....
3
votes
3answers
240 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
76 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
81 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/...
1
vote
0answers
94 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=${...
2
votes
2answers
1k 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 ...
2
votes
1answer
4k 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
58 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
1answer
342 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 ...
3
votes
1answer
810 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
693 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
291 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
148 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
547 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
636 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
110 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
260 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
205 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
206 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
2 3 4 5 6