Thanks very much for the answer, Frank. Best wishes, Yilmaz
On Mon, Sep 21, 2009 at 10:12 PM, Frank Warmerdam <[email protected]> wrote: > Yilmaz Arslanoglu wrote: >> >> Also, as another related question, I query the DEPCNT layer in one of >> my ENC files, and it has a geospatial reference. >> However, the points on the line string features themselves return NULL >> when they are queried with getSpatialReference(). >> Aren't they expected to return exactly the same instance for the layer >> that they reside on? > > Yilmaz, > > Others have addressed the geodesic distance issue. > > On the spatial reference issue, you are correct. The geometry from the > layers ought to return a pointer to the same spatial reference object > as you see on the layer. It is a defect of the S-57 driver (and I suspect > a number of others) that this is not done. If you like, you could file > a ticket on this and someone could fix it up. > > In practice the spatial references attached to the geometries are rarely > consulted by applications and so are often not set properly by drivers. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > [email protected] > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
