Questions tagged [gml]
Geography Markup Language (GML) is an OGC Standard for expressing geographical features.
317
questions
0
votes
0
answers
20
views
How to fix the error in GML: non-planar polygon distance
I have validated the GML data in the CityDoctor. It found the error "GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE" in nearly all of the buildings. Is there a short way to fix such an error?
0
votes
0
answers
18
views
A single building is represented as several smaller buildings in GML file
A single building is divided into several different parts and expressed with different building identities in the GML file that I need to study. Is there any way to fix such an error?
1
vote
1
answer
29
views
Trying to determine which CRS this GML uses
I am trying to locate an area that is currently in GML format. I know it is somewhere in Istanbul but I need to know which Coordinate Reference System (CRS) it uses to overlay it with other maps. ...
0
votes
1
answer
26
views
Deegree: how to cope with GML with an Arc: "Cannot determine control points for ring, contains non-linear segments"?
How can I read with 'deegree' a GML3.2 with an arc?
The simplified data contains an arc:
<gml:Polygon>
<gml:exterior>
<gml:Ring>
<gml:curveMember>
<gml:...
0
votes
2
answers
26
views
GeoTools GML 3.2 serialization - how to access GMLConfiguration and GML namespace
I am using code similar to the sample below to serialize JTS geometries to GML 3.2. That works fine, but I can't see how to access the underlying configuration in order to control aspects of GML ...
0
votes
0
answers
31
views
How can I convert a GML with multiple layers to a GeoJSON and store layer name in FeatureType property?
I have a GML file that has multiple layers and I want to convert it to GeoJSON. Apparently, GeoJSON cannot handle multiple layers explicitly. Thus, I want to store the layer name in a property called ...
-1
votes
1
answer
42
views
How to merge two *.gml files with different geometry types into one gml file
I have two gml files one contains linear data and the other one contains polygon data. I want to have the correct ogr command to merge the two gml files into one file.
I found this answer from 2012 ...
0
votes
0
answers
24
views
Read GML file with GeoTools 29.0 [duplicate]
I am trying to read the sample GML file in Java using GeoTools 29.0 but getting issue for finding data store. Can you share a sample on how to read GML file or parse it to WKT/GeoJSON in Java using ...
0
votes
0
answers
28
views
GML axis order with EPSG-Code 31468 and 5678
EPSG 31468 and 5678 basically mean the same: DHDN / 3-degree Gauss-Krueger zone 4. The difference is the axis order.
EPSG 31468: northing-easting
EPSG 5678: easting-northing
In GML you can define a ...
2
votes
1
answer
134
views
Opening GML file with collection of geometries in QGIS
I can't visualize in QGIS the .gml file that can be downloaded here (second row). I think QGIS doesn't support files with 'collection of geometries', therefore I don't know how to use it.
A professor ...
0
votes
1
answer
56
views
Validating GML against XSD schema gives ERROR
I am a very beginner in GIS and have the following problem I couldn't resolve yet.
I have an XSD schema and an XML document I want to validate against the schema. As expected the XML isn't valid yet, ...
1
vote
1
answer
40
views
Using gml:FeatureCollection / gml:featureMember in GMLAS driver via ogr2ogr
Does anyone know how to force the use of the gml:FeatureCollection and gml:featureMember prefixes instead wfs:FeatureCollection and wfs:member, when exporting gml via ogr2ogr using GMLAS driver....
2
votes
1
answer
109
views
OpenLayers WFS source with bbox and filter
I am trying to work with the French IGN geoportal which provides a WFS source of data.
I have worked out how to use OpenLayers' Vector source with
const ignPkUrl = (extent: Extent, projection: string =...
3
votes
1
answer
99
views
OpenLayers 6.12 can't load GML 3.1.1 features from EPSG:32620 and WFS 2.0.0
With OpenLayers 6.12, I cannot visualize a layer concerning Martinique EPSG:32620.
As I have no error I don't know if it comes from this projection or from the GML which would not be compatible.
I ...
0
votes
1
answer
99
views
GeoServer WFS GML reporting wrong polygon coordinates
From my GeoServer, I can correctly download a Shapefile of a Polygon layer and request it as WMS as well.
However, when requesting the same layer through WFS, I get wrong coordinates delivered.
A ...
1
vote
0
answers
21
views
Is it possible to convert GML to GeoJSON [duplicate]
This is an example generated by GeoServer.
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis....
0
votes
0
answers
155
views
Conversion of .gml (MultiLineStringZ) to .shp (Polygon)
I want to convert .gml (Type: MultiLineStringZ) to .shp (Type: Polygon) and only save the respective height (Attribute: measuredHeight) data given in the .gml to the shp. I already tried out the ...
3
votes
1
answer
624
views
Reading GML data in QGIS
Is there a specific reason, why QGIS can display some CityGML data from the Bavarian surveying agency right out of the box and other XML or GML files from that same source do not show anything?
When ...
0
votes
2
answers
113
views
WFS intersect filter with multiple polygons
I am trying to do a WFS POST request to https://environment.data.gov.uk/spatialdata/crow-act-2000-section-4-conclusive-registered-common-land-england/wfs where I need to send a list of polygons and ...
0
votes
1
answer
105
views
How to use WFS access point to create a GeoJSON of data displayed on QGIS canvas when ogr2ogr does not find schema?
The German state of Schleswig-Holstein has a geoportal, where they provide a link to their WFS service:
https://service.gdi-sh.de/SH_INSPIREDOWNLOAD_AI_CP_ALKIS?service=WFS&version=2.0.0&...
3
votes
1
answer
724
views
Reading GML features with shapely in Python?
Is it possible to read GML features directly with shapely in Python?
We are able to read a GML string with GDAL to shapely via below code, but we prefer to avoid GDAL and use shapely directly:
from ...
1
vote
1
answer
504
views
Unable to convert GML to shapefile in ArcGIS Pro Data Interoperability Quick Export option
I am trying to import GML file and convert it to shapefile in ArcGIS Pro Data Interoperability Quick Export option. However, I got the error
XML Parser error: 'Error at file: '' line: 0 column: 0 ...
1
vote
0
answers
104
views
Getting GML features with OpenLayers from Spanish Cadaster fails
I'm trying to paint parcels retrieved from Spanish land register by their API (as described here, PDF Spanish only!). It's an WFS service (complying INSPIRE) and offers the information as GML versión ...
0
votes
0
answers
153
views
I need a formula to calculate gml:pos to standard GPS coordinates
I downloaded "address points" data from geoportal and the coordinates are not readable for me.
<wfs:member>
<ms:prg-adresy>
<gml:boundedBy>
<gml:Envelope ...
0
votes
1
answer
400
views
How to write GML with features inside FeatureCollection.FeatureCollectionMembers element
I received a sample ready-made GML file (60 MB) along with a corresponding XSD file, with the aim of converting some of my databases to an identical GML form.
I first opened this GML in the FME Data ...
1
vote
1
answer
250
views
GeoServer WPS gs:Aggregate throws: Filter type not supported error
I'm using the WPS gs:Aggregate function with an OGC filter. When I use an OGC filter with PropertyIsEqualTo it works. But when I use a geometry filter it throws the error 'Filter type not supported'.
...
1
vote
0
answers
145
views
Create a GML with OpenLayers
i would like to create a GML after finishing drawing:
import GML3 from 'ol/format/GML3';
this.draw_add.on('drawend',
function (this: any, e: any) {
this.myFeature = e.feature;
...
0
votes
0
answers
176
views
Writing features in GML format to send it to GeoServer : Cannot read properties of null (reading 'getAxisOrientation')
I would like to create GML using OpenLayers to send it to GeoServer to insert a new feature. After the end of draw I'm getting my feature with:
import GML3 from 'ol/format/GML3';
this.draw_add....
0
votes
1
answer
263
views
Buffering polygons with Oracle Spatial 11 vs. 19
Does anyone have special knowledge about Oracle Spatial?
I buffered polygons in Oracle-11 Database by making them slightly smaller (-50cm). The geometries are then delivered via a WFS as GML. With ...
0
votes
1
answer
93
views
GeoServer GML Direct
I have GML documents which I wish to serve with GeoServer WFS. Essentially, I want to be able to copy the documents to some place e.g. data_dir store and when a GetFeature is done have GeoServer ...
4
votes
3
answers
524
views
Selecting certain text from attribute values in QGIS using field calculator
I am using QGIS 3.16 (Field Calculator). I have a number of values in the attributes of my GML file that read:
'Nonconiferous Trees' or
'Nonconiferous Trees (Scattered)' or
'Nonconiferous Trees, ...
0
votes
1
answer
251
views
Finding points from shapefile (residing in GeoServer) that are inside a provided polygon
I am new to GeoServer and spatial data. I have a shapefile "shape-file-2" in geo server which is a collection of Points. I am trying to fetch all the points which are inside a provided ...
0
votes
0
answers
475
views
UnsupportedGeometryTypeError from GML
I'm trying to download a layer from the WFS service:
import geopandas as gpd
from owslib.wfs import WebFeatureService
wfs_service = WebFeatureService(url="http://wms.pcn.minambiente.it/ogc?map=/...
0
votes
0
answers
43
views
Creating point feature class template with specific distance between them that generates points in every projection,keeping the same metrical distance
I am working on digitizing airport lights in ArcGIS Pro. I would like to create a point feature class representing airport lights that could serve as a standard template for different airports around ...
0
votes
0
answers
63
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
0
answers
45
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
2
answers
656
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
0
answers
139
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
0
answers
139
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
1
answer
94
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
2
answers
479
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. ...
1
vote
1
answer
83
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
1
answer
177
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 ...
2
votes
1
answer
3k
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 ...
1
vote
1
answer
455
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
1
answer
370
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
0
answers
661
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
1
answer
489
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
1
answer
372
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
0
answers
1k
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/...