Book Image

GeoServer Cookbook

By : Stefano Iacovella
Book Image

GeoServer Cookbook

By: Stefano Iacovella

Overview of this book

Table of Contents (17 chapters)
GeoServer Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Overriding an official EPSG code


In the previous recipe, you learned how to convert from one CRS to another. This transformation is also called a data shift operation, as the main difference among the two CRS is the data.

Performing a coordinate transformation is not always as simple as it was in the previous recipe. Let's dive into this new recipe to discover how things can quickly get far more complicated.

How to do it…

  1. Open Reprojection console and insert EPSG:32632 for Source CRS and EPSG:3003 for Target CRS. Then, insert POINT(510071 4340827) in Source Geometry and click on the Forward Transformation link. The result is as follows:

  2. Take note of these values and open a console. Locate your data directory folder and switch to the user_projections directory. Create a new file and call it epsg_overrides.properties:

    $ cd /opt/data_dir_geoserver/
    $ cd user_projections/
    $ sudo vi epsg_overrides.properties
  3. Insert the following code inside epsg_overrides.properties and then save it:

    3003=PROJCS["Monte...