What version of GML supported by GlobalMapper 13??
johnney
Global Mapper User
Hi Guys,
I was just wondering which version of GML is supported by GlobalMapper, i tried every GML files from OpenLayers examples, seems that all works fine, so i guess it should support GML 2, but then i tried creating a GML file using NTS, we know it follows the GML 2.1.1, but unluky. Can anybody tell what's wrong with me?
Thanks,
Johnny
I was just wondering which version of GML is supported by GlobalMapper, i tried every GML files from OpenLayers examples, seems that all works fine, so i guess it should support GML 2, but then i tried creating a GML file using NTS, we know it follows the GML 2.1.1, but unluky. Can anybody tell what's wrong with me?
Thanks,
Johnny
Comments
-
Johnny,
If you can provide a sample that doesn't work I can see why and likely add support. Support has been added from sample data and not to a particular version of GML. We plan to support all versions as they are used.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thank you very much for the reply, here is code that i tried to create GML, it requires the latest version of NTS and GeoAPI.
Geometry geometry2 = (Geometry)new WKTReader().Read("LINESTRING (-157.7392046 21.3969819, -157.7389669 21.3965825, -157.738863 21.3964225, -157.7389669 21.3965825, -157.738863 21.3964225, -157.7387323 21.3963027, -157.7381335 21.396043)");
GMLWriter gmlWriter = new GMLWriter();
MemoryStream ms = new MemoryStream();
gmlWriter.Write(geometry2, ms);
string gml = System.Text.Encoding.Default.GetString(ms.ToArray());
Hope it helped.
Thanks,
Johnny
-
Johnny,
I don't have NTS or GeoAPI, can you just provide a GML file that doesn't work?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Please check the attachment.
Thanks,
Johnny -
Johnny,
There aren't any features in that GML file, just a description of a polygon bounds, but not as part of anything. Typically that would be inside a <gml:featureMember> tag to mark it as part of a feature geometry.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thanks, Mike. I'll check the document again.
Johnny -
Hope you don't mind me piggy backing, but this was exactly my question. We've created the attached, which is based on one of the draft (soon to be published) INSPIRE specifications, and I'm looking for tools able to open it. GlobalMapper 13.2 says "No data could be loaded from the file SX98.gml".
Unfortunately, I can't upload the sample, because your upload tool says "invalid file": it's valid XML, and I can load it with a few other tools (FME Universal Viewer, Quantum GIS Desktop, Snowflake Viewer).
So I've uploaded a cut down file (that exhibits the same behaviour), and it's associated .xsd, to Google docs:
https://docs.google.com/open?id=0Bz6E6ENW7BaTQjctakl5M0pfSEE
https://docs.google.com/open?id=0Bz6E6ENW7BaTZFRlblVYeXRvbWM
I'd be interested to know what makes it hard for you to open (& even upload)
Peter -
Peter,
I'll let Mike field the actual issue but as far as the forum is concerned, XML is now an enabled attachment and you can attach it to posts. Sorry about that.
Paul -
Peter/Paul/Ringo/etc.,
I took a look at the GML file at the OSGB just changed (for about the 10th time) what tags they use for their data set. I've updated GM to support that and it loads fine now. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
An interesting response; it can hardly be true that we (OSGB) "just changed ... what tags they use for their data set" - I did point out that this is a completely different product from anything we've made in GML before. We could hardly use the same "tags" for a file full of spot heights & contours as we do for say ITN.
I would have hoped you weren't treating GML by looking for specific "tags".
I can confirm that Global Mapper 14 opens two different experimental GML 3.2 files that I now give it. One is a second beta of our VectorMap District, the other a trial new height (elevation) product, "inspired by" the draft INSPIRE specifications. The fact that the GML feature names are not accessible in the "Feature Information" window suggests to me that Global Mapper 14 has implemented a more generic solution - which is great.
Interesting that the properties of each feature are shown (as attributes) in the feature information window. It would be even nicer if the feature type appeared as the "name" in the feature information window. -
Perhaps not the "name" - but I'm only now learning about Global Mapper's approach to feature types, and I can see that it may be a tall order to map an unknown set of incoming GML feature types to a pre-defined set of Global Mapper feature types.
-
The GML import was a bit picky in terms of the top-level tags that indicate what a feature actually was so GM could now how to put all of the geometry and attributes into individual features. I have updated it to be generic now since each type of data set seems to use different top-level tag names. I had expected the same tags and then maybe some attributes of those to identify types of data just to make developers jobs easier. It seems most standards aren't written with a developer that has to write software to read the data anywhere in the room
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
GML isn't really a standard in that sense, it's a markup language - an XML grammar for expressing geography. It does have some strong design principles, but leaves the semantics & decisions about what are the features of interest to particular domains.
There has been quite a lot going on across Europe to standardise that, under the INSPIRE initiative. Over the next few years, you can expect a lot of geographic data from public authorities in Europe to start appearing in GML3.2, with 'tags' / feature types / semantic models all conforming to the models & schemas that INSPIRE is publishing.
It settles on the kind of model where the tags are for 'real world' things, like "Road", "Building", rather than geometry-lead classifications like we have had in OS MasterMap. Of course, that means there are a lot of different INSPIRE feature types.
Worth a look - but there's a lot of it! -
That is definitely something we will look at once the standards settle down a bit. Hopefully a lot of people start using the same thing rather than a proliferation of different profiles!
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Ortak Sağlık ve Güvenlik Birimi İlk yardım ve acil müdahale için, işyerlerinde kaza, yangın, doğal afetler gibi acil müdahale gerektiren durumlar için acil durum planlarının hazırlanmasını, ilkyardım ve acil müdahale bakımından yapılması gerekenleri, uygulamaları organize eder, yürütür ve ilgili diğer birim, kurum ve kuruluşlarla işbirliği yapar.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website