Questions tagged [gml]
Geography Markup Language (GML) is an OGC Standard for expressing geographical features.
295
questions
1
vote
0
answers
11
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
13
views
Writing features in GML format to send it to geoserver : Cannot read properties of null (reading 'getAxisOrientation')
i would like to create a GML using openlayers to send it to Geoserver to insert a new feature:
After the end of draw i'm getting my feature
import GML3 from 'ol/format/GML3';
this.draw_add.on('...
0
votes
0
answers
31
views
WFS layer with format GML3 is not shown in OpenLayers 6 map
I am using OpenLayers 6.6.1 . A parcel layer is queried via WFS 1.1.0 and output format GML2 respectively 3.
If I use GML2.1.2, the parcels are displayed on the map. However, GML2 has a problem with ...
0
votes
1
answer
34
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
24
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
127
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
53
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
98
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
37
views
Loading Entities as GML
Is there any way to load GML files like we do with GeoJSON/KML?
I need to load a GML as string like this:
"<gml:Polygon srsName=\"http://www.opengis.net/gml/srs/epsg.xml#4326\" ...
0
votes
0
answers
32
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
34
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
36
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
164
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
62
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
64
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
33
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
192
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
72
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
75
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
0
answers
20
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
1
answer
597
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
197
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
158
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
199
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
238
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
173
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
656
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
1
answer
216
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
2
answers
527
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
1
answer
55
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
1
answer
192
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
1
answer
271
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
0
answers
92
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
0
answers
102
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
0
answers
509
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
0
answers
84
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
0
answers
40
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
0
answers
48
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
1
answer
239
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
1
answer
193
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
1
answer
2k
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
1
answer
201
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
1
answer
177
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
0
answers
57
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
2
answers
66
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
2
answers
296
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
1
answer
852
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
0
answers
80
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
0
answers
43
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
1
answer
232
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:...