Questions tagged [gml]
Geography Markup Language (GML) is an OGC Standard for expressing geographical features.
255
questions
3
votes
1answer
591 views
OSS java approach to convert Shapefile to GML
We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ...
22
votes
4answers
20k views
Using ogr2ogr to convert GML to shapefile in Python?
I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script.
I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand ...
4
votes
2answers
2k views
How to use the OGR/GDAL configure options in QGIS Python environment
I'm looking for a solution how to use the OGR/GDAL configure options (--config) in the QGIS Python environment. http://trac.osgeo.org/gdal/wiki/ConfigOptions
Setting special configure options is ...
0
votes
1answer
362 views
Does a polygon in a layer intersect with another polygon in the same layer [closed]
I am a CS major with little experience in GIS. I am working on vector polygon overlay. Looking at GML and shapefile data, I realized that a map is made up of a large number of polygons. Does a polygon ...
5
votes
1answer
1k views
Why are the polygons in my GML not rendered?
I tried to view GML files from download services ( http://services.cuzk.cz/gml/inspire/cp/epsg-5514/ ) and I have a problem with viewing of polygons from layer "CP:CadastralParcel". This Layer ...
1
vote
1answer
657 views
How can I import geometries from an invalid GML quickly?
I have the following gml geometry :
<gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:2154">
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension=...
1
vote
1answer
2k views
Converting a shp file to a list of latitudes and longitudes
I have a shp file with the latitudes and longitudes for the boundaries for various geographic regions. I'd like to convert the shp file into lists of just latitudes and longitudes for the regions. I'...
1
vote
1answer
910 views
How to convert a CompositeCurve to a NetTopologySuite MultiLineString?
I would like to use NetTopologySuite to convert a CompositeCurve to a MultiLineString. I would like to find some code which shows how to convert this to a MultiLineString:
<gml:CompositeCurve ...
1
vote
1answer
541 views
Can use of GML Simple Features profile by Web Feature Service (WFS) be advertised?
The ArcGIS 10.1 documentation on Working with WFS services says:
The GML Simple Features profile is recommended for use with ArcGIS and
is the basis for WFS support in ArcGIS.
Is there an easy ...
6
votes
8answers
12k views
Getting OS Mastermap data into QGIS?
I have been tasked with getting OS Mastermap topography data into QGIS system to compliment our other map layers. The data comes in .gz format. Which I am told needs to be decompressed before I can do ...
2
votes
1answer
540 views
Service URL for Web Feature Service (WFS) using GML Simple Features profile?
Does anyone know of an "almost always available" Service URL for a Web Feature Service (WFS) using GML Simple Features profile?
I'm keen to test WFS client capabilities without having to configure a ...
5
votes
1answer
462 views
How to convert WFS request to GML?
I have the following:
var popProto = new OpenLayers.Protocol.WFS({
url: WFS_HOST,
version: "1.1.0",
featureType: layerName,
featureNS: namespace,
srsName: "EPSG:4326",
...
2
votes
3answers
3k views
How to merge several GML files into one
I have a folder of GML files that I want to be able to merge to create one GML file that I can then view.
I have tried this using the code described but searching for GML in this website without ...
3
votes
1answer
1k views
PostGIS: ST_Transform function conversion problem
I'm inserting map data from a GML file with srid EPSG:27700 into a PostGIS database table with srid EPSG:4326. I'm using the ST_Transform function as in this snippet:
ST_Transform(ST_GeomFromGML('&...
2
votes
2answers
690 views
Ordnance Survey osgb:BNG spatial reference system not recognized by PostGIS
I'm trying to load an Ordnance Survey GML file into PostGIS using the ST_GeomFromGML function. The problem is that the spatial reference system that is used in the file, osgb:BNG, is not recognized by ...
1
vote
3answers
1k views
How can I translate a GML definition of SRS to a usual format (e.g. WKT or PROJ.4)?
From GDAL 1.9.0 a new utility is available: gdalsrsinfo.
Although it can yield an XML (GML-based) definition from a source equivalent format or file, it seems that it can only read usual GDAL/OGR ...
3
votes
1answer
726 views
Python: shp file to GML using OGR
I am trying to convert a shapefile to GML 3.1.1 . I am using gdal 1.9.1 however the GML conversion it generates for a geometry feature is GML 2 and it also swaps the long/latitude coordinates. Are ...
1
vote
2answers
316 views
postgis st_geomfromgml error on point
In PostGIS 2.0 I try:
select ST_GeomFromGML(
'<gml:Point srsName="urn:ogc:def:crs:EPSG::28992">
<gml:pos>275466.0 565559.0 0.0</gml:pos>
</gml:Point>');
This ...
1
vote
1answer
2k views
OpenLayers.Format.GML parser problem?
I'm trying to parse WFS reponse using OpenLayers.Format.GML parser. However, an exception thrown in my try-catch block is TypeError: a is undefined.
protocol = new OpenLayers.Protocol.WFS({
...
2
votes
3answers
3k views
How to batch convert Shapefiles to GMLs?
I know how to do this within Quantum GIS but I have 30+ shapefiles that need to be converted to GML. Is there a Python script sample or plugin for Quantum GIS that I can use to convert my shapefiles ...
9
votes
3answers
8k views
Convert GML to GeoJSON
I have downloaded a GML file from Statistics Canada and would like to convert it into GeoJSON to use parts of it in a D3 visualization on the web. However, I did not find a converter that would do ...
1
vote
1answer
900 views
How does ArcGIS Desktop recognize WMS CRS?
I'm using ArcGIS Desktop 10 and working on a WMS service with Mars data. Currently the GetCapabilities shows <SRS>EPSG:4326</SRS>. I assume ArcGIS 10 reads this and therefore the WMS has ...
1
vote
0answers
331 views
PostGIS reports invalid Curve GML
PostGIS version POSTGIS="1.5.3" GEOS="3.3.1-CAPI-1.7.1" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.3" USE_STATS
Postgresql version PostgreSQL 9.1.2
I'm having issues inserting Curves into a ...
5
votes
2answers
9k views
WFS Request Layer (GML) with Filter
Is there a solution to request the GML layer from Geoserver with filter like using bbox:
http://localhost:8080/geoserver/tiger/ows?service=WFS&version=1.0.0
&request=GetFeature&typeName=...
2
votes
1answer
722 views
How to add more than one xml file per layer
I'm using this code to add xml (osm relations) files to my map.
osm_layer = new OpenLayers.Layer.GML("Polygon", relation.xml, {
format: OpenLayers.Format.OSM,
style: {strokeColor: "blue"},
projection:...
4
votes
1answer
490 views
Can GeoTools parse GML CRS definitions?
A kind of branching of this question.
Soon I will need to handle GML Coordinate Reference Sysyem definitions in a Java servlet. Links:
GML OGC reference.
Concrete example.
I know that GeoTools ...
1
vote
1answer
2k views
Anyone try generating C# classes from http://schemas.opengis.net?
I'd like to generate gml/wfs/wms classes from the OGC schemas. Using xsd2code I receive numerous errors, one of them being "Invalid particle derivation by restriction". I'm curious is anyone has ...
2
votes
1answer
497 views
OpenLayers WPS function fails in IE
I am making a WPS call in OpenLayers which works successfully in Chrome and Firefox but not in IE9. The response from IE tells me
Process failed during execution\nCould not convert to target type
...
10
votes
2answers
5k views
Why can't I edit KML/GML layers?
Newbie here confused by my first experience in QGIS
I have a handful of lines defining a bike route.
Originally they were saved in a .gml file and later translated into .kml so they could be viewed ...
10
votes
3answers
770 views
What does it mean “GML is an XML grammar”?
I'm trying to get my head around the theoretical side of XML and GML. The OGC web page for GML states that:
The Geography Markup Language (GML) is an XML grammar for expressing
geographical ...
4
votes
1answer
1k views
Is there an XML equivalent to GeoJSON?
In my web application, I am retrieving geospatial data from a server backend (Java) to the browser frontend (JavaScript). I am considering two options of how to serialize the data in this ...
1
vote
1answer
690 views
OpenLayers GML Polygon Performance
I'm working on a project where we have a large number of very detailed polygons being displayed on a image using Openlayers. The polygons are added to the map through a GML feed.
We are having end ...
2
votes
1answer
1k views
What does “Error when writing Schema: A unique destination featuretype name could not be generated for” mean?
I have a bunch of GML datasets which I need to import to Esri featureclasses. I am using the Data Interoperability extension for ArcGIS, which should support this. However when trying to import my ...
5
votes
2answers
21k views
Converting GML to Geodatabase Feature Classes?
I have a series of XML files containing GML tags such as :
<gml:posList srsDimension="2">454780.3125 525867.9375 454762.0625 525994.5625
and I need to convert these into ESRI feature classes.
...
0
votes
3answers
268 views
Looking for large GML files containing vector polygon data
I have few vector data files with 500 to 700 MB GML files. But I am looking for files larger than these preferably 1 GB, 2 GB. It would be helpful if somebody can provide some pointers regarding the ...
4
votes
4answers
1k views
Looking for web and desktop tools with GML support
I am a graduate student and a novice in GIS field. I have few GML files that contain vector polygon data and I want to see them in a map format. The problem is that I do not have access to ArcGIS/...
1
vote
1answer
700 views
How to update GML layer without reloading local file?
I set up a GML layer with local GeoJSON file as data source:
veclayer = new OpenLayers.Layer.GML("vector", "localfile.json",
{
format: OpenLayers.Format.GeoJSON,
strategies: [new OpenLayers....
9
votes
2answers
2k views
Storing GML surface in PostGIS
I'm using PostGIS 2.0.0 and would like to store a GML Surface in a way that allows calculating intersections between that surface and various points and lines. In my case, the Surface will have one ...
3
votes
1answer
626 views
How to show one to many relationships in GML from GeoServer/PostGIS?
I am just figuring out how to use GeoServer and PostGIS. I am using the States.shp example that came with GeoServer, and I have uploaded that into a table into the PostGIS database. I have created a ...
11
votes
2answers
2k views
Why does one part of GML -> KML conversion not work on Google Maps?
I have a client who wants to visualise cancer incidence and mortality rates by local/unitary authority across Great Britain. I've used Ordnance Survey data to get the boundaries of the authorities in ...
-3
votes
2answers
2k views
Why is my JSON not appearing on my web page?
I came across this error whilst doing my JSON file.
"Error in loading GML file"
Everything works fine in localhost but dramatically wrong in my server. Any helping hands?
This is my JavaScript code:...
3
votes
1answer
343 views
Polygon Shared Boundaries in GML
Last week I was told on a phone conference that GML supports shared boundaries in Polygon's. I have been unable to find any documenatation to substantiate the claim. Here is the situation:
I have a ...
7
votes
3answers
6k views
How to import/export geographic information (gml or csv file) to geodatabase?
I am searching for C#/Java libraries that can import and export geographic information (gml/csv file formats) from and to geodatabases.
If not yet available, is there other way to do this task?
Any ...
1
vote
0answers
109 views
Getting started with storing LoST and GML searching
I am working on a logging and search database application.
The application will receive event records containing XML LoST values (RFC5222 Location-To-Service-Translation). These records will be ...
5
votes
1answer
473 views
Experience with Geoserver's GML Extension
I'd like to know if Geoserver's GML extension works (well) with GeoServer 2.1-RC2 and whether it will enable uploading of GML files via REST API.
4
votes
0answers
868 views
Why doesn't the gml 3.1.1 schema validate with xmllint? [closed]
Running xmllint on the gml 3.1.1 schema fails, even though the release notes claim that this release was created to get the schema to validate using 'common tools'. There's questions about this on ...
0
votes
1answer
223 views
In what form should make requests to geoserver gml file from javascript?
In what form should make requests to geoserver gml file from javascript?.
I have made this question, but neither on nor XMLRequest jquery and have downloaded some of geoserver, geoserver values ...
2
votes
4answers
2k views
How do algorithms load pieces of maps?
If the user moves the mouse pointer to the top left corner of the screen, I want my software to auto-load the three tiles that are closest to the mouse pointer. My assumptions are that the smaller are ...
14
votes
6answers
3k views
What's an efficient way of detecting road junctions on a map?
I may receive maps from any source for my project, and for the C++ algorithm I'm making, it's imperative for the algorithm to know where road junctions (nodes where more than two road segments meet) ...
2
votes
1answer
1k views
how to download a file from geoserver gml from a url using javascript?
how to download a file from geoserver gml from a url using javascript?
I'm doing a web application with javascript, but I could not download files from geoserver, the url given entry does not bring ...