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

Discussion Forums

The online community for users of Map Suite GIS components

Subject: Projections and RenderUSA data
Prev Next
You are not authorized to post a reply.
Author Messages
6/16/2008 12: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

9/01/2008 9: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.
Forums > Map Suite 2.x Dataset Plugins > Render USA > Projections and RenderUSA data



ActiveForums 3.7