Hi,

1.  uDig can currently be configured to default to
        - A EPSG code of your choice, or:
        - The CRS of the first layer added

2. The map properties can be saved but it will take a new plugin. It is a very simple plugin extending the net.refractions.udig.project.persister class. It is a very simple class to write and I'd do it right now if I didn't have a critical task at hand that can't wait. Otherwise any projection that is set on a layer will persist. The layer properties allows you to specify a layer's CRS in the same way as the map.

Jesse


On Apr 23, 2007, at 10:20 PM, Dane Blakely Springmeyer wrote:

Hmm,

With a bit more digging I answered my own question. In the map properties I can assign a custom projection that works perfectly (by copying in the .prj file) into the CRS window.

Then... now my more focused questiona are: 1) Can uDig be configured to load a map in the projection of the data rather than lat / long, and 2) can custom projections be "saved" in the map properties to be used again or more easily assigned.

Jesse, just let me know if you would like me to put these in as feature requests.

Dane




On Apr 23, 2007, at 9:54 PM, Dane Blakely Springmeyer wrote:

Hi uDiggers,

In my day job (mapping pacific salmon habitat, rivers, and ecosystems) I am constantly projecting spatial data in custom projections that place the central meridian in the center of the Pacific Ocean (180 longitude). This works perfectly to stitch together the North Pacific region of my focus, but tends to produce anomalies when switching software apps. For example, I get the error "Problem rendering: Latitude 90 degrees N is too close to a pole" when I add my data as a layer in uDig.

I have been following the efforts to make relative paths work, and therefore to be able to package uDig as a data viewer on a CD. This is a feature I'm excited about but this projection issue would hold me up. So, I'd be interested if anyone wants to take a crack at either explaining to me what it would take to get my custom projection to work in uDig or to detail if there is custom projection functionality that I am not aware of.

I have posted an example dataset here:

http://danespringmeyer.com/north_pacific_watersheds.zip

it is a hack of the standard world mercator projection:

PROJCS["Clarke_1866_Mercator",GEOGCS["GCS_Clarke_1866",DATUM ["D_Clarke_1866",SPHEROID["Clarke_1866", 6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree", 0.0174532925199433]],PROJECTION["Mercator"],PARAMETER ["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER ["Central_Meridian",180.0],PARAMETER["Standard_Parallel_1", 47.5],UNIT["Meter",1.0]]


Cheers,

Dane





_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to