Questions tagged [gml-geographic-markup-lan]
Geographic markup language, commonly known as GML, is a dialect of XML used to encode geographic features (vectors), coverages (JPEG2000), and sensor data and is also used as a common interchange format on the web. It was released by the Open Geospatial Consortium.
50
questions
0
votes
1answer
15 views
Duplicate edges in .gml file using networkx.read_gml python
I want to use networkx in python to read a .gml file.
However when I do,
import networkx as nx
nx.read_gml("myfilename.gml")
it raises the error
networkx.exception.NetworkXError: edge #213 (...
0
votes
0answers
10 views
Java - Javax.xml.bind.JAXBException: Class *** nor any of its super class is known to this context
I have a converter class
public class Convert {
private JAXBContext context;
private final GeometryFactory geometryFactory = new GeometryFactory();
private JTSToGML321GeometryConverter ...
0
votes
1answer
27 views
Java - How to store gml data to postgres database (with postgis)
I woudlike to store in my database :
example data :
ST_GeomFromGML('
<gml:LineString srsName="EPSG:4269">
<gml:coordinates>
-71.16028,42....
1
vote
1answer
45 views
Showing features from a GML3 file (with a specific projection)
How can I show the geometries from a GML file using a specific format? The problem is that Nothing is shown. No error messages.
In my Angular project, I first set the specific projection.
proj4.defs(&...
0
votes
1answer
654 views
Python-AttributeError: 'int' object has no attribute 'decode'" when trying to call the GML file on NetworkX
Premise・What I want to achieve
I'm going to use Python to read the GML file.
Error Message
Traceback (most recent call last):
File "firstgml.py", line 9, in <module>
G = nx....
0
votes
1answer
93 views
PLSQL parsing GML
Trying to optimize a procedure that parses GML strings to Oracle sdo_geometry.
<gml:Polygon >
<gml:exterior>
<gml:LinearRing>
<gml:posList > [...
2
votes
1answer
473 views
Arabic labels do not display correctly in Geoserver
I have geoserver installed with Tomcat and the text labeling do not display correctly . where can i set the Arabic encoding in geosever?
the labeling appear well in QGIS but when i publish it in ...
0
votes
1answer
104 views
Convert gml fragment with srs attribute to wkt with geotools
I have the following gml fragment:
<gml:LineString srsName="EPSG:25832"><gml:coordinates>663957.75944074022118,5103981.64908889029175 663955.915655555087142,5103991.151674075052142&...
1
vote
3answers
71 views
How to re-order a tokenized list in XSLT and read two values from it at a time?
I have some code (from GeoNetwork) which needs to convert Geography Markup Language (in XML) into GeoJSON. I'm currently trying to add functionality to read a polygon formed from a posList, but I'm ...
0
votes
1answer
45 views
Importing NetworkX graph to GML keeping the special characters intact
I want to write a graph G in GML format. My node names (label in GML) contain special characters like š, č etc. These are not replicated in the GML file when I do the following.
nx.write_gml(G, 'G....
0
votes
1answer
761 views
Getting a node after write/read from gml NetworkX
I'm having a problem while getting nodes after reading a GML graph. (I'm sorry I can't provide you with a exact reproducable code, because my code is 500 lines long, and smaller reproducable examples ...
0
votes
1answer
126 views
Change GML geometry attribute from Linestring to Multicurve in FME
I am currently converting a shapefile into a GML file for an online Mapviewer. this application requires the geometry to be in a seperate attribute and needs to consist of multicurve features.
using ...
0
votes
1answer
830 views
“global element … has already been declared” errors when trying to make C# classes with xsd.exe
According to using xsd.exe to generate c# files, getting error and warnings I've downloaded all 115 XSD files needed for GML (Geography Markup Language) definition including all referenced files, ...
3
votes
1answer
424 views
Parsing GML encoded WFS response XML file
I need some help getting weather details temperature etc. out of this GML encoded WMS response XML file. This what I get from weather service that provides open data with Catalog Service for Web (CSW),...
0
votes
1answer
162 views
Unable to append the gml string to xml using lxml in python
test_gml.py
from lxml import etree
import lxml
xml_response = lxml.etree.Element('xmlResponse')
mapping = lxml.etree.SubElement(xml_response,'mapping',{"id":"AHGJHKSHQWEIUELQWDKJQEDH"})
...
1
vote
1answer
727 views
Slow GML (Geographic Markup Language) file reading with readOGR in R
I have a lot of GML files to loop through in R, but none of them are extremely heavy (max file size is 600 Mb, but normally they range between 10-60 Mb). My problem is that readOGR function from the {...
0
votes
1answer
949 views
Python GeoJson to GML conversion
I have a python application that creates polygons to identify geographic areas of interest at specific times. To this point I've been using geojson because of the handy geojson library that makes ...
0
votes
1answer
207 views
Creating a building based on citygml4j at LoD3 and LoD4
I have been trying to generate a building model based on citygml4j at different levels of details. I could generate simple models up to LoD2. I want to add some more details like doors and windows and ...
0
votes
1answer
622 views
OpenLayers 3 GML Format Not Parsing Entire File
new ol.layer.Vector({
source: new ol.source.Vector({
url: WFS,
format: new ol.format.GML()
}),
style: new ol.style.Style({
fill: new ol.style.Fill({
color: '...
1
vote
1answer
179 views
Maintaining GraphAttributes with GraphCopy::initByCC in OGDF
I am trying to use OGDF to perform some processing on graphs loaded from GML files. These graphs are only meaningful if the node labels are maintained. Unfortunately, OGDF does not make it easy to ...
1
vote
0answers
59 views
How can i add a a roof overhang?
I am trying to create a building using Citygml4j library. The building should have building parts and overhangs. When examined I saw use of the BuildingInstallation class for building elements like ...
2
votes
1answer
646 views
Creating & View IndoorOSM or IndoorGML files
I am working on a indoor navigation project with Googles Project Tango tablet (Android). I can scan a building with it an created a internal graph representation of the floorplan (map). I want to ...
1
vote
1answer
340 views
Error unmarshalling GML with golang encoding/xml
I am trying to unmarshal some XML, actually Geography Markup Language (GML).
I have an example at http://play.golang.org/p/qS6GjCOtHF
Two problems, the first:
error reading xml main....
1
vote
1answer
140 views
Converting Web Feature Service Geographical Markup Language data into a shape with R
I'm trying to convert Web Feature Service layers that are in XML/GML into a shapefile using R, I'm not quite there and would appreciate any help.
The WFS link is:
'http://sdi.fish.govt.nz/sdi/...
0
votes
1answer
91 views
What is the difference between linear and geodesic interpretation?
While trying to understand the difference between LineStringSegment and GeodesicSegment, I concluded that the difference is the interpretation of the segment (correct me if I am wrong).
Could someone ...
0
votes
2answers
301 views
How to compute coordinates of start/end points of a ArcByCenterPoint?
Given an ArcByCenterPoint, defined by:
center position (lat,lon in WGS84)
radius (meters)
startAngle (degrees)
endAngle (degrees)
how can we compute the position (lat, lon) of start/end points?...
1
vote
0answers
82 views
ROME & GeoRSS - Unable to write GML
I'm having some issues creating a GML-based point reference using ROME. My code will (hopefully!) explain what I'm trying to do better:
public static void geoRSSTest() {
SyndFeed feed = new ...
0
votes
1answer
521 views
Extract polygon geometry from citygml data using citygml4j library
I have buildings' information stored in citygml file. I am trying to extract the building's polygon geometry using the citygml4j library. I have looked at the FeatureWalker class, but I am unable to ...
0
votes
0answers
112 views
GML Dynamic Feature History Abstract Time Slice Restriction
I'm designing a GML application schema in which I intend to make frequent use of the gml:DynamicFeature substitution and extension for standardised WFS time-query support.
I want to restrict the ...
1
vote
1answer
4k views
How to add shapefiles to a Bing Map using Openlayers 3
I am using Openlayers3 with Bing Maps to build my application. I have a point shapefile and would like to show it on the map. I could do it using Openlayers2 using the OpenLayers.Layer.GML() construct ...
0
votes
0answers
49 views
Differences between GML and GMLJP2
I'm wondering which are the differences between GML and GMLJP2. I know GMLJP2 is for JPEG2000, however I want to know if anything changes from one GML to the other. I found an ontology of GML and I ...
0
votes
1answer
477 views
What is the best way to parse GML in VB.Net
I'm looking for the best way to parse GML to return the spatial data. As example here's a GML file:
<?xml version="1.0" encoding="utf-8"?>
<gml:FeatureCollection xmlns:gml="http://www....
1
vote
2answers
2k views
Convert ajax response to an ol3 GML Layer
I am experimenting with OpenLayers3 and am having difficulty with a getfeatureinfo request. I'm trying to do it via ajax and convert the response to a GML layer as you could in OpenLayers2.
The code ...
1
vote
1answer
2k views
How to change the order of a layer when set visible in openlayers?
I am working on a website that uses OpenLayers to draw a map and add layers of information on top of it. Everything works fine but one thing.
When I add a new layer of information, I want it to be ...
1
vote
1answer
639 views
Parse a GML file (from a shp one) in C
My problem is that, using ogr2ogr, I parse a shp file into a gml one.
Then I want to parse this file in my C function.
sprintf(buffer, "PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH:/usr/...
1
vote
1answer
342 views
GML strings in Turtle
I am trying to use the OGC GeoSPARQL vocabulary in a Turtle file. Here is a fragment:
:spatialextent
a geosparql:Geometry;
geosparql:asGML "<gml:Polygon srsName="EPSG:28992"><gml:exterior&...
0
votes
1answer
497 views
OpenLayers.Layer.GML Throwing JS Error
I am trying to load a KML file into my Openlayers map. I added the following line of Code to my JS file and it throws an error. My map won't even load after I add this line:
var layer = new ...
0
votes
1answer
384 views
How to publish a GML file as a Web Feature Service (WFS)?
I am interested in publishing a GML file as a WFS. I don't want to use a database like PostgreSQL. What would be the rough steps I need to do for that? I like to use open source software (geoserver).
0
votes
1answer
2k views
How to write GML parser with Geotools?
I wrote a Parser for a GML file from the OS Mastermap with geotools 8.4. With one part I still have a problem. This sniplet of the xsd:
<complexType name="RoadLinkType">
<complexContent&...
2
votes
1answer
1k views
OpenLayers: Vector Layer not rendering in certain browsers
I'm new to openLayers and trying to add a GML overlay:
http://the506.com/elxnmaps/2011/ftontest.html
The file renders perfectly as is in Chrome and Safari, but doesn't render at all in Firefox or IE;...
0
votes
1answer
732 views
xml with wfs:transaction/insert-request fails to validate against WFS xsd-schema
The problem I'm trying to solve is related to interaction between OpenLayers and TinyOWS, namely inserting a new feature, but I won't post any Javascript code or TinyOWS configs here because they are ...
2
votes
2answers
801 views
How to Use XSLT to Replace Coordinate Separator With List of Tuples?
I have a space-separated list of coordinate tuples, with arbitrarily many tuples. Each tuple consists of a space-separated list of 2-dimensional coordinates. E.g. "1.1 2.8 1.2 2.9" represents a line ...
2
votes
0answers
266 views
Geography Markup Language rendering on Android
Can I use Open GL ES or some graphics engine to render GML's on Android. Or else transformation from GML to SVG is necessary for using it in Open GL ES or some graphics Engine.
2
votes
0answers
805 views
Is it possible to import some GML into Sql Server 2008?
I have a GML file which i wish to import into Sql Server 2008.
Is this possible?
I know how to read in some GML data if I hard-code the actual data .. but i'm not sure about getting it from a file.
...
4
votes
1answer
3k views
How to access features of a loaded GML file in OpenLayers?
I seem not to be able to access features of a loaded GML file. I will use the basic example of OpenLayers to demonstrate what I want to do :
http://jsfiddle.net/AUbZn/14/
var map;
map = new ...
0
votes
2answers
4k views
OpenLayers loading a GML file from an other site
I'm having difficulties loading a GML file into OpenLayers. I've stripped down the problem to the following :
- copy/past the example at : http://openlayers.org/dev/examples/behavior-fixed-http-gml....
0
votes
3answers
2k views
How to create a gml file from Java code
I want to create an application which require to create a .gml file using Java. And I want to add elements in that newly created .gml file from a text file.
How can I do so?
6
votes
3answers
4k views
Reading gml in c#
I have a problem with reading some gml files in c#. My files do not have schema or namespaces and looks like file from this question:
Parsing GML data using C# Linq to XML
only whitout the schema ...
1
vote
1answer
371 views
GML usage criteria, or what is the proper way for useing GML (Geography XML)
We want to use GML in our application; It is a GIS based application which simulates the real word objects (i.e. Pipes, Roads, etc) in a virtual reality environment. Currently we draw and store the ...
1
vote
4answers
2k views
Is it possible to export spatial data from Sql Server 2008 in gml2 format?
Sql Server 2008 supports spatial data with new geometry and geography UDT's. They both support AsGml() method to serialize data in gml format. However they serialize data into GML3 format. Is there ...