Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Closed Unassigned: Projection Translation from 4283 to 4326 Not Working [25674]

$
0
0
There appear to be a bug translating from 4283 GDA94 to Lat/Long 4326.

We have tested many projections and never had a problem. yet for some reason this WKID doesn't work.

The values in the array come back as invalid numbers NAN.

We have also tried swapping in the Proj4 string to create the projection instead of using EPSG code. Same result.


Below is a small snippet test to show the issue. Resulting coordinates are not returned.




//http://spatialreference.org/ref/epsg/4283/
var sourceProjection = ProjectionInfo.FromEpsgCode( 4283 );

//http://spatialreference.org/ref/epsg/4326/
var destinationProjection = ProjectionInfo.FromEpsgCode( 4326 );
double[] xytest = new double[ 4 ];
double[] ztest = new double[ 2 ];
xytest[ 0 ] = 281737.2873;
xytest[ 1 ] = 6133012.2813;
xytest[ 2 ] = 281238.2664;
xytest[ 3 ] = 6133002.089;
Reproject.ReprojectPoints( xytest, ztest, sourceProjection, destinationProjection, 0, 2 );

Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>