Skip to main content

Questions tagged [gml]

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

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

Unable to update GML Multisurface after GeoServer upgrade

We are testing a (much needed) upgrade from GeoServer 2.17.2 to 2.25.1. We are currently stumped as to why we can't seem to be able to update or insert a multisurface using the same WFS transaction ...
CarteTon's user avatar
  • 116
0 votes
1 answer
35 views

Can GeoTools parse GML geodetic shapes?

I am trying to parse different GML definitions, according to the geodetic shapes defined in RFC-5491. Points and polygons are parsed OK with GeoTools parser: Configuration configuration = new ...
llmarti's user avatar
  • 11
0 votes
1 answer
32 views

Geotools GML 3.2 Parsing to Geometry - does geotools suport all GML3.2 types?

currently I'm trying to parse a couple of GML3.2 data to Geometry. Example 1: <gml:Ring xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Aleksandar Mitev's user avatar
1 vote
0 answers
41 views

OpenLayers add GML32 to map doesn't work

I'm new to this forum, but was thinking someone here could probably help me out. I recently moved from using leaflet to using openlayers. For a new project I want to display the content of a gml file ...
valentinooz's user avatar
0 votes
0 answers
47 views

How can I read the Geometry of IHO S100 products (S123 and S127) geometry (a GML file) in Python?

I am working on the IHO (International Hydrographic Organization) S100 products, especially, S-123 and S-127. These marine products are the data related to S-123 Marine Radio Services and S-127 Marine ...
milad's user avatar
  • 729
0 votes
0 answers
35 views

Parsing complex GML with GDAL

We have some complex GML that looks like <?xml version="1.0" encoding="UTF-8"?> <abpr:AddressBaseSupplySet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
tjmgis's user avatar
  • 3,330
0 votes
0 answers
25 views

How to export data(shp) to GML from an xsd file

I am a beginner in GIS, I would like to have a free tool or code, allowing me to write data in GML format following the rules provided by a data xsd file. Ps: I have databases in shp with the ...
Herve Mambap's user avatar
0 votes
0 answers
59 views

GML file data extraction

I'm completely new with QGIS and GML files. I managed to open one of GML file that can be downloaded here: https://geodaten.bayern.de/opengeodata/OpenDataDetail.html?pn=lod2 These files are LoD2 data, ...
Fernando García's user avatar
0 votes
0 answers
40 views

Is it possible to request GML using WFS-T for ZM type geometry? (Point ZM, LineString ZM, Polygon ZM)

I'm a newbie here. I'm not sure whether my question is good or not... But, I want to ask something. To use Transactional Web Feature Service (WFS-T) to insert an object of a Point type, I sent a ...
janghs17's user avatar
1 vote
1 answer
48 views

Double geometries in GML with different EPSG using GDAL

In our GML we have two geometries (a British National Grid and a ETRS89) so to try and extract these we use a GFS file with the following additional XML to extract them. <GeomPropertyDefn> <...
tjmgis's user avatar
  • 3,330
1 vote
1 answer
61 views

Convert Multi-layered GML file to GeoJSON

I have the GreenSpace GML file from https://osdatahub.os.uk/ When using ogr2ogr with this command: -f GeoJSON -lco RFC7946=YES OSOpenGreenspace.geojson OSOpenGreenspace.gml I am given this Error by ...
GentleCynic's user avatar
0 votes
1 answer
51 views

Converting GML to GeoJSON - offset is out of bounds

I need to convert a GML file to GeoJSON from this website (https://use-land-property-data.service.gov.uk/datasets/inspire/download) and store it in my MongoDB database. I have read a few posts on here ...
GentleCynic's user avatar
0 votes
0 answers
69 views

Exporting to GraphML instead of GML (QGIS)

Would there be a way to export a layer (say, a multistring) to a GraphML file instead of GML. Every time I try to export a layer I only see the option for GML and have still yet to find a way to ...
CarloseNew's user avatar
2 votes
0 answers
88 views

How to use ogr2ogr to download WFS data congaining special characters (such as \x01)?

Problem I am interested in the ms:C_GAZ layer of this WFS endpoint. QGIS can connect to this the endpoint and visualise its data without any error (I recommend zooming in heavily to a big city to ...
zabop's user avatar
  • 2,224
1 vote
0 answers
168 views

GDAL to convert GML to KML

I have a GML file and it has a code structure as follows. When I convert it to KML via GDAL, it does not read the coordinates. When I delete negative values, it reads but only one position appears. ...
SelimSezer's user avatar
0 votes
1 answer
172 views

How should I write a .gfs for a .gml file that has multiple Points in a single feature?

I have a .gml file that I need to parse into a Postgres database using ogr2ogr. The command I use is: ogr2ogr -f "PostgreSQL" PG:"host=localhost port=5432 dbname=mydb active_schema=...
Saaru Lindestøkke's user avatar
2 votes
0 answers
101 views

How to skip XML parsing errors when accessing WFS endpoint using ogr2ogr?

I am downloading data from a WFS endpoint using ogr2ogr. The WFS endpoint: https://wxs-gpu.mongeoportail.ign.fr/externe/39wtxmgtn23okfbbs1al2lz3/wfs. The name of the layer I care about: wfs_du:...
zabop's user avatar
  • 2,224
0 votes
0 answers
37 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?
Gülce's user avatar
  • 13
0 votes
0 answers
27 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?
Gülce's user avatar
  • 13
1 vote
1 answer
77 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. ...
Gülce's user avatar
  • 13
0 votes
1 answer
55 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:...
tm1701's user avatar
  • 131
0 votes
2 answers
116 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 ...
Gunther's user avatar
  • 101
0 votes
0 answers
119 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 ...
milad's user avatar
  • 729
0 votes
1 answer
167 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 ...
milad's user avatar
  • 729
0 votes
0 answers
31 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 ...
Vaishnav Kshirsagar's user avatar
2 votes
1 answer
577 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 ...
Fabio Castelli's user avatar
0 votes
1 answer
173 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, ...
Anna-Lena 's user avatar
1 vote
1 answer
148 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....
Alek's user avatar
  • 11
2 votes
1 answer
315 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 =...
Askirkela's user avatar
  • 123
3 votes
1 answer
132 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 ...
ericire's user avatar
  • 173
0 votes
1 answer
262 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 ...
ulrich's user avatar
  • 1,170
1 vote
0 answers
22 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....
SomeOne's user avatar
  • 41
0 votes
0 answers
293 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 ...
user210818's user avatar
3 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
283 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 ...
Sam Warner's user avatar
0 votes
1 answer
197 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&...
zabop's user avatar
  • 2,224
3 votes
1 answer
2k 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 ...
Davma's user avatar
  • 850
1 vote
1 answer
883 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 ...
Jordan Ho's user avatar
1 vote
0 answers
123 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 ...
geraldo's user avatar
  • 960
0 votes
0 answers
240 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 ...
Valkyria's user avatar
0 votes
1 answer
673 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 ...
Damir Črnila's user avatar
1 vote
1 answer
369 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'. ...
mvoermans's user avatar
1 vote
0 answers
176 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; ...
work's user avatar
  • 73
0 votes
0 answers
239 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....
work's user avatar
  • 73
0 votes
1 answer
531 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 ...
TommyP's user avatar
  • 1
0 votes
1 answer
129 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 ...
Waslap's user avatar
  • 101
4 votes
3 answers
986 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, ...
cartocraftsman's user avatar
0 votes
1 answer
335 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 ...
Akashdeep Wadhwa's user avatar
0 votes
0 answers
587 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=/...
MaxDragonheart's user avatar
0 votes
0 answers
48 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 ...
Aurora's user avatar
  • 11

1
2 3 4 5
7