This project is read-only.

proj4string contains a command that is not understood

Feb 24, 2011 at 3:55 PM
Edited Feb 27, 2011 at 6:38 AM

Hi,

According to the discussion http://dotspatial.codeplex.com/discussions/241267, I downloaded corrected files and generated new dll to solve labellayer null problem.

When I change the project references to the new ones (controls, data, data.forms, symbology, topology), I get this error in the execution window :

"the to parameter is not supported and will not process the rest of this string

proj4string contains a command that is not understood. It may be missing an '='"

My program contains only demo described here http://screencast.com/t/tuEfbInl . The message appears before the form1_load (I put a break there). It doesn't happen when I go back to the old references of the current version (DotSpatial 12-15-2010).

Thanks to explain if this problem comes from me or from sources files.

I'm using Windows 7/x64/VS 2010 vb.net

dostpatial source 1ff37008fede (2011, Feb, 25)


Olivier

Feb 27, 2011 at 8:44 AM
Edited Feb 27, 2011 at 5:58 PM

OK, so I found that the message comes from dotspatial.ParseProj4String (see comments for "+to" in DotSpatial.Projections.ProjectionsInfo.ParseProj4String) and two projections definitions in WorldSpheroid.cs that contains "+R_A" parameter which is not understood. R_A seems required for Miller and VanderGrinten projections http://man.gnusquad.org/pdl__transform__proj4/section-3/en/, don't ask me more !

By the way, it inpired me a few things :

1) In Map.cs, Configure, I noticed an extent initialization with (-180,180,-90,90) instead of (-180,-90,180,90) as the second parameter is ymin and third is xmax.

2) Couldn't it be possible to load those 3 hundreds definitions just if required ?

3) There is also a problem with the "to" parameter which is not managed, towgs is not managed either by Arcgis.http://forums.esri.com/thread.asp?c=93&f=984&t=229581 but dotspatial code stops (break instead of continue) and should continue to process the rest of the string.