Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |  Developer Community
 
LivePerson Chat

Discussion Forums

The online community for users of Map Suite GIS components

Projections and RenderUSA data
Last Post 09-01-2008 10:20 PM by sun. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
JeffUser is Offline
Level 1
Level 1
Posts:6

--
06-16-2008 01:43 PM

Hi,

I have run the Projections sample app under the regular Map Suite samples without difficulty.

Now, I have incorporated the RenderUSA.vb source from the Render USA sample code, and have been trying to use an alternate projection such as Miller. I've incorporated the two transform classes shown, GeodeticToMiller and MillerToGeodetic.

However, when the sub LoadLayers from class USARenderers is executed I generate an unhandled OverflowException with the following shapefile from the RenderUSA demo code:

    mLayers.Add(RenderLayer(New Layer(mDataDirectory + "\USA\rivers.shp", geoTransform_, True)))

where:

' Transform from Geodetic to another projection

geoTransform_ = New GeodeticToMiller()

There are other shape files later that produce the overflow,  but I can isolate this one for sure - commented out, the code 'runs', and enabled, it generates the Overflow exception.

Also, I need to perform the projection/transform on the MapShapes layer, but am not sure how to do that.

Ideas on either of these?

thanks,

-jeff kyser

sunUser is Offline
Level 3
Level 3
Posts:94

--
09-01-2008 10:20 PM
Hi Jeff,

I think you need to recreate the index file if you want to add the projection information to the layer. You can build the index file by the BuildIndexWithProjection function of layer and cover the old one.

Sun
You are not authorized to post a reply.

Active Forums 4.1