Questions tagged [gml]

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

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

Problem with Data Interoperability FME.exe some layers from GDB failed through extract data tool processing

I have ArcGIS Server 10.7.1 and using Data Interoperability tool for extract data from SDE DB to GML format. After process is starting there is a lot of fme.exe in processes on the server. Memory is ...
0
votes
0answers
18 views

Using ST_GeomFromGML in QGIS

Im working with the SQL query composer in QGIS to add a WFS layer. This returns 28 features: SELECT * FROM Enkelbestemming WHERE ST_DWithin(geometrie, ST_GeometryFromText('POINT(55186 361094)'), ...
1
vote
0answers
34 views

Choosing vector source format for geospatial dashboard [closed]

I'm currently working on a Geospatial dashboard application where I have base maps and raster data in polar-centric projections, using open source tools (GDAL, PostGIS, OpenLayers). In past projects, ...
1
vote
2answers
58 views

Using ogr2ogr in Python to import data to PostgreSQL DB

Currently I use the following command to batch import multiple GML files to PostGIS database: set dirgml= C:\data\ set app=ogr2ogr set opt=-update -append -progress set dst=-f "PostgreSQL"...
1
vote
0answers
46 views

ogr2ogr batch append/update multiple gml files to postgres DB- how to skip the failed feature and log erros to a file

My task is to append/update features to a postgis table by importing multiple gml files that contain os mastermap topography data. I've created a batch file that contains the script below and it ...
2
votes
0answers
48 views

Why QGIS using different coordinate order depending on import type GML / CSV

I am using QGIS 3.20 (Odense) I am importing same polygons from GML3 and also from a CSV file. In GML, all geometries are assigned a single coordinate system EPSG:2180 (srsName="urn:ogc:def:crs:...
1
vote
1answer
11 views

Intersect with Linestring rather than Polygon

The code below filters by given polygon coords but I need to do the same except with a linestring. How do I find polygons that intersect with a polyline? <ogc:Filter> <ogc:Intersects> ...
0
votes
2answers
63 views

Wrong coordinates after converting GML to GeoJSON

I'm using OSGeo.OGR (C#) library to perform GML to GeoJson conversion. Parsing works perfect except extracting incorrect coordinates. After conversion map objects appears in another place on the map. ...
0
votes
1answer
61 views

How to add coordinate system to SPOT imagery mask files?

I'm working with SPOT 6 and 7 imagery delivered in DIMAP format. I've figured out how to extract the multispectral and pan-chromatic bands into geotiff with gdal-translate so they're easier to work ...
1
vote
1answer
52 views

OS Features API: Filtering by Intersects with Polygon

I'm trying to use the OS Features API to retrieve Greenspace within a Polygon. The OS example here demonstrates how this is supposedly possible, but when I try the same I cannot retrieve features. I ...
0
votes
0answers
17 views

Append new data with restrictions from GML-1, GML-2 and application schemes

I have multiple GML datasets, where new data needs to be added. GML is not an editable format, so a workaround could be to convert to another format, or if possible to postgis. Then finally from ...
1
vote
1answer
165 views

Load specific layer from GML to GeoPandas

I got a GML file from Ordnance Survey's Topography layer. The file has 5 layers in total (image from loading to QGIS): I would like to load the file to python and I saw that GeoPandas has GML support ...
0
votes
0answers
61 views

How can I import 3D model in QGIS from this City Building data

I want to get the 3D model from Geoportal. I am using the website "https://geoportal-hamburg.de/geo-online/#" .See fig-1. I searched for the Building and got a feature named ' Building LoD,...
0
votes
0answers
37 views

Filtering polygon using Cesium for WMS 1.3.0

I am trying to display only the portions of my data that fall within the polygon. I am using WebMapServiceImageryProvider to get the tiled imagery.   As Cesium just supports WGS84, I tried to use both ...
1
vote
1answer
113 views

Import multiple GML files into PostgreSQL 11

I have some 50 GML files in my downloads folder, each within a child folder such as: Downloads\Adur\Land_Registry_Cadastral_Parcels.gml Downloads\Abertawe_-_Swansea\Land_Registry_Cadastral_Parcels.gml ...
3
votes
1answer
111 views

Add a QGIS vectorlayer by geometry type

I wanted to add a GML layer to my QGIS file, but filtered by geometry type. (the file has multiple geometry types in it, with the same layer name, and same layerID. I came across this post: iface....
0
votes
0answers
106 views

How to extract the data from a GML file to a shapefile format? or select only few features from a large GML file?

I have a very big GML file on buildings in Denmark. (I could only download a 'whole country' in one file, so it is big as 17GB, no.of features over 1million). I only need a very few of them in a small ...
4
votes
1answer
140 views

GeoServer DescribeFeatureType response missing attribute for GML only

We have a GeoServer 2.18.2 instance serving data from PostGIS that seems to return a different structure for DescribeFeatureType requests depending on the outputFormat specified in the request. One of ...
1
vote
1answer
119 views

Reconstruct full coordinate reference system stored in a GML file

I have been able to parse a GML file and fetch the polygons I wanted. They can be plotted ok when plotted on their own. I have them stored in a GeoPandas data frame, but I am struggling to set the ...
1
vote
0answers
484 views

Extract one geometry type from GML file in GeoPandas

I try to use GML data from Landesvermessung Brandenburg in GeoPandas. It generally works to load files like this: df = gpd.read_file(r'/vsizip//vsicurl/https://data.geobasis-bb.de/geobasis/daten/...
0
votes
1answer
127 views

How to extract coordinate from GML File in Java using geotools with STAX

I would like to extract all coordinates from my GML file and convert them in geometry type: <geometrie> <gml:MultiCurve srsName="EPSG:3944" srsDimension="3"...
1
vote
2answers
406 views

Show GML on map (using an example GML file)

How can I show features (from an example file)? I tried many, many ways. This is a different route using a standard GML example file from OpenLayers. Problem : With the shown code example, I don't see ...
2
votes
1answer
45 views

Reading feature from a GML3 content-string

How can I show the geometries from a GML3 file? Nothing is shown. This question is DIFFERENT from Show GML on map (using an example GML file). The other project was to get a strange GML2 file visible ...
1
vote
1answer
138 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. ...
1
vote
1answer
187 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
64 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
62 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
398 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
62 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
33 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
43 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.
1
vote
1answer
168 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
1answer
143 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
1k 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
122 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
136 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
50 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
60 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
2answers
260 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).
1
vote
1answer
607 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
66 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
39 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
176 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
62 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
529 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 ...
2
votes
1answer
584 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
57 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
130 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
398 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. ...
3
votes
1answer
139 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
2 3 4 5 6