On Tue, Jul 19, 2011 at 2:29 AM, Bobby Braswell
<[email protected]> wrote:
>
> Hi-
>
> I have geoserver 2.1 working and have imported several raster data sets. I
> ran into trouble with a MODIS tile which is in the sinusoidal projection. I
> verified the source of the problem was the projection (it was not present in
> the geoserver SRS list; also I swapped out the WKT from another data set and
> it imported fine).
>
> So my question is how can I add this projection? I followed the instructions
> here:http://docs.geoserver.org/stable/en/user/advanced/crshandling/customcrs.html and
> the sinusoidal projection now shows up in the SRS list but I suspect this
> isn't enough, i.e. geoserver knows a specific set of projection parameters
> (EPSG 6974) , but doesn't have access to the actual projection equations
> that are needed. Do I need to modify geotools in some way, then rebuild?
>
> Could someone please point me to instructions or an example of adding a
> projection into geoserver?

I don't have instructions but I can show you the diff of the commit that added
the Robinson projection to GeoTools (and thus GeoServer), attached.
Basically:
- add a class implementing the math (which normally comes straight from proj,
  Frank W. allowed us to get the code), possibly try to register all the aliases
  for the project name in EPSG, ESRI and GeoTiff styles
- register the class in META-INF so that GeoTools knows it exists
- add a test to check the reprojection results are the expected ones comparing
  with the ones of a third party tool, typically cs2cs
- if you want to contribute the changes back, so that they will be
available in
  future GeoTools/GeoServer releases, add a patch to jira.codehaus.org
  for the geotools project, referencing module

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to