flyskyosg / libcitygml

Automatically exported from code.google.com/p/libcitygml
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Introduce error values if no SRSname was set in the model file #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a CityGML Model with no SRS assigned in the file and a destSRS set.
2. The library prints a warning to stderr and assignes the srsName attribute of 
the CityModel objects to params.destSRS without applying any SRS transformation 
(because it does not know about the sourceSRS)
3. A program using the library is not able to determine wether a transformation 
took place or not.

What is the expected output? What do you see instead?

The value of srsName of a model should haven a value that is somehow clearly 
recognizeable as unknown. Then it would be clear that no transformation has 
been applied.

What version of the product are you using? 
current trunk

Please provide any additional information below.

Introduce a value (maybe specifyable from outside the library) that gets set 
when no coordinate transformation could be performed e.g. because no SRS was 
set in the model file.

Original issue reported on code.google.com by jan.kli...@gmail.com on 5 Jan 2012 at 12:30

GoogleCodeExporter commented 9 years ago

Original comment by jpouder...@gmail.com on 5 Jan 2012 at 12:36

GoogleCodeExporter commented 9 years ago

Original comment by jpouder...@gmail.com on 7 Feb 2012 at 10:06