[Proj4j] Question About Valid CRS Identifiers To Get Started With GUI Development

Sunburned Surveyor sunburned.surveyor at gmail.com
Fri Feb 5 19:05:58 EST 2010


Martin,

I was looking over the example code you sent me a few weeks ago. This
led me to a question that I want to ask about Proj4J. The answers will
help me get started with the GUI development.

I see that we pass the CoordinateSystemFactory.createFromName method
some type of identifier to obtain a coordinate system. Is there a
mechanism within Proj4J that I can use to obtain a list of valid
identifiers? I know this information may be embedded in some text
files or configuration files. That is fine. I can write a parser if
needed to obtain the list if you can point me in the correct place to
look. I want to present the user with a list box of valid CRS
identifiers. (Actually, I will need two (2) list boxes. One will be
for the source CRS and one will be for the desination CRS.)

Once I get this figured out, I think the rest will come together
without too much of your help. I think I will need to build some
wrapper layers that extract ProjCoordinate objects from feature
geometries stored in a Shapefile. I imagine transformation of
Shapefiles will be our typical use case. Of course, people could want
to transform spatial data from other sources too, but I want to get
something working with Shapefiles first.

So it looks like I will have to layers to implement. One will be the
actual GUI, the second will be a layer that reads and writes
ProjCoordinate objects from feature geometries in different formats,
like ESRI shapefiles. I'm thinking I will tap the GeoTools library for
Shapefile support at this point.

Let me know what your thoughts are on this.

It may take me a few weeks to get a working GUI for Shapefile
conversion. After this is done I will work on the parser for the
MetaCRS test data.

The Sunburned Surveyor


More information about the Proj4j mailing list