[Geomoose-users] Change projection

Brent Fraser bfraser at geoanalytic.com
Wed Jan 7 08:04:06 PST 2015


That's because you've set you display projection to something other than 
EPSG:3857 (likely EPSG:25833?).  It is NOT necessary to change the 
display projection just to display your own data.  If you want to use 
standard basemap tiles like OSM, Google, etc, then you MUST use a 
display projection of EPSG:3857.

Best Regards,
Brent Fraser

On 1/7/2015 7:14 AM, geo.graefin at web.de wrote:
> Sorry, I have forgotten the appendix with the screenshot of GeoMOOSE.
> *Gesendet:* Mittwoch, 07. Januar 2015 um 14:46 Uhr
> *Von:* geo.graefin at web.de
> *An:* "Brent Fraser" <bfraser at geoanalytic.com>, 
> geomoose-users at lists.osgeo.org
> *Betreff:* Aw: Re: [Geomoose-users] Change projection
> Thank you for checking. But the new projection still doesn't work, see 
> appendix. It is showing the area somewhere over France, actually it 
> has to show the east of Germany.
> Greetings, Geograefin
> *Gesendet:* Dienstag, 06. Januar 2015 um 17:40 Uhr
> *Von:* "Brent Fraser" <bfraser at geoanalytic.com>
> *An:* geo.graefin at web.de, "GeoMOOSE Users List" 
> <geomoose-users at lists.osgeo.org>
> *Betreff:* Re: [Geomoose-users] Change projection
> 2.6.1 works fine too.
> Best Regards,
> Brent Fraser
> On 1/6/2015 8:57 AM, Brent Fraser wrote:
>
>     Geograefin,
>
>       I don't think 2.6 is very different with the way it handles
>     coordinate systems, but I will try it to make sure.
>
>       Your web mapping site can have only one display coordinate
>     system (e.g. EPSG:3857, or EPSG:25833) at a time, but each of your
>     local data sets can be in any coordinate system.  Mapserver can
>     re-project them to the target display coordinate system if you
>     give enough information in your Mapserver map files.
>
>       I used your estimates for the extents in the mapbook.xml
>             <param name="max_extent">100000,1000000,999999,9999999</param>
>             <param
>     name="initial_extent">295743,5511505,709358,5755456</param>
>
>     Best Regards,
>     Brent Fraser
>
>     On 1/6/2015 8:03 AM, geo.graefin at web.de wrote:
>
>         Dear Brant Fraser,
>         thank you for your answer!
>         I use GeoMOOSE 2.6. Does this make a difference?
>         Cannot I use several coordinate systems (EPSG:25833 and
>         EPSG:3857)?
>         What have you entered as the max_extent in mapbook.xml?
>         Sincerely, Geograefin
>         *Gesendet:* Dienstag, 06. Januar 2015 um 15:11 Uhr
>         *Von:* "Brent Fraser" <bfraser at geoanalytic.com>
>         *An:* geo.graefin at web.de, geomoose-users at lists.osgeo.org
>         *Betreff:* Re: [Geomoose-users] Change projection
>         Geograephin,
>
>           I followed the instructions and got something reasonable:
>
>         <deleted image>
>
>         How can you tell your setup is not working properly?
>
>         (Note that only the ArcGIS server will return tiles in the
>         EPSG:25833 coordinate system for the Background group).
>
>         Best Regards,
>         Brent Fraser
>
>         On 1/6/2015 6:06 AM, geo.graefin at web.de wrote:
>
>             Hello,
>             here more in detail what I did:
>             1. I created a new js file including the declaration of
>             the EPSG code from spatialreference.org and deleted the
>             one of EPSG:26915.
>             /Proj4js.defs["EPSG:25833"] = "+proj=utm +zone=33
>             +ellps=GRS80 +units=m +no_defs";/
>             2. I referenced this new js file in geomoose.html. Beside
>             there is another projection for the geographic coordinates
>             (EPSG:3857). I deleted the reference of EPSG:26915.
>             /<script type="text/javascript"
>             src="projections/EPSG3857.js"></script>
>             <script type="text/javascript"
>             src="projections/EPSG25833.js"></script>/
>             3. I changed the parameters projection, max_extent and
>             initial_extent in mapbook.xml.
>             /<param name="projection">EPSG:25833</param>
>              <param name="zoomto"><![CDATA[
>                     {
>              "Zoom To:" : {
>              "Sachsen und Niederschlesien" :
>             [295743,5511505,709358,5755456]
>                         }
>                     }
>              ]]></param>
>              <param
>             name="max_extent">100000,1000000,999999,9999999</param>
>              <param
>             name="initial_extent">295743,5511505,709358,5755456</param>
>              <param name="measure_tool.show_area_segments">false</param>
>              <param name="layer_controls.legend.on">false</param>
>              <param name="layer_controls.up.on">false</param>
>              <param name="layer_controls.down.on">false</param>
>              <param name="layer_controls.metadata.on">false</param>
>              <param name="layer_controls.legend.on">true</param>
>              <param name="group_checkboxes">false</param>
>              <param name="default_tab">Catalog</param>
>              <param name="ground_units">m</param>
>              <param name="maxResolution">156543.03390625</param>
>              <param name="numZoomLevels">20</param>
>              <param name="coordinate_display.usng">false</param>
>              <param name="jumpto_scales"><![CDATA[
>                     {
>              "1:100000" : 100000,
>              "1:50000" : 50000,
>              "1:24000" : 24000,
>              "1:10000" : 10000,
>              "1:5000" : 5000
>                     }
>              ]]></param>/
>             When I change the coordinates of max_extent then GeoMOOSE
>             shows another area. Maybe there is the problem? When I set
>             the fractional_zoom to true, the osm tiles will be
>             displayed pink.
>             4. I changed the projection of the map in
>             local_settings.ini and settings.ini:
>             /[map]
>             projection=EPSG:25833/
>             That is what I have done. Is there anywhere a reference to
>             the "old" projection of EPSG:26915? Anything I have missing?
>             Unfortunately I have no own data, that I can proof,
>             because there is a mistake in the map file of the data's
>             source.
>             Thanks a lot for your help!
>             Greetings, Geograefin
>             *Gesendet:* Montag, 05. Januar 2015 um 22:16 Uhr
>             *Von:* "TC Haddad" <tchaddad at gmail.com>
>             *An:* geo.graefin at web.de
>             *Betreff:* Re: Re: [Geomoose-users] Change projection
>             Let's back up - can you describe your symptoms in more detail?
>             - You started from the demo
>             - You made your projection changes and something didn't work
>             - is your data displaying correctly in the map?
>             - do you get a pink screen when you try to view your data?
>             - are the coordinates displaying below the map incorrect?
>             or duplicated in 2 projections?
>             More items to double check or try:
>             - Did you set appropriate initial and maximum extent
>             values in the Mapbook?
>             ie. <param
>             name="max_extent">7110968,-610403,9234765,956456</param>
>             <param
>             name="initial_extent">7296650,228568,7570144,408049</param>
>             - Did you set the correct units in the Mapbook?
>             <param name="ground_units">ft</param>
>             - Did you set appropriate zoom levels in the Mapbook?
>             <param name="fractional_zoom">true</param>
>             <param
>             name="scales">0.25,0.5,1,2,4,8,16,32,64,128,256,512,1024,2048</param>
>             On Mon, Jan 5, 2015 at 11:14 AM, <geo.graefin at web.de> wrote:
>
>                 Thank you for your answer,
>                 I did all the steps, including the both of your
>                 answer. I really have no idea, what is wrong. Maybe
>                 the local_settings.ini could not overwrite the
>                 settings.ini?
>                 *Gesendet:* Montag, 05. Januar 2015 um 18:10 Uhr
>                 *Von:* "TC Haddad" <tchaddad at gmail.com>
>                 *An:* geo.graefin at web.de
>                 *Betreff:* Re: [Geomoose-users] Change projection
>                 Some ideas to check if you started from the Demo file:
>
>                   * Did you place the epsg25833.js file that you
>                     created in Step 2 in the projections directory?
>                   * Did you remove the reference to the old projection
>                     from your HTML? ie.
>                     delete <script type=”text/javascript”
>                     src=”projections/EPSG26915.js”></script>
>                     insert <script type=”text/javascript”
>                     src=”projections/EPSG25833.js”></script>
>
>                 On Mon, Jan 5, 2015 at 8:35 AM, <geo.graefin at web.de
>                 <http://geo.graefin@web.de>> wrote:
>
>                     Dear community,
>                     I have problems with changing the projection of my
>                     GeoMOOSE project. I have followed the instructions
>                     at the GeoMOOSE site
>                     [http://docs.geomoose.org/2.7/docs/projections.html].
>                     In addition to all these steps I changed the EPSG
>                     code in local_settings.ini. But there is no
>                     effect.  It still shows the projection (EPSG code
>                     26915) of the demo, as well as the coordinates x,y
>                     at the status bar. The "new" epsg code is 25833.
>                     Do you have any ideas, what instructions are
>                     missing or what i did wrong?
>                     I would be very grateful for help! Thank you in
>                     advance!
>                     Greetings, Geograefin
>
>                     _______________________________________________
>                     Geomoose-users mailing list
>                     Geomoose-users at lists.osgeo.org
>                     <http://Geomoose-users@lists.osgeo.org>
>                     http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>             _______________________________________________
>             Geomoose-users mailing list
>             Geomoose-users at lists.osgeo.org
>             http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>     _______________________________________________
>     Geomoose-users mailing list
>     Geomoose-users at lists.osgeo.org
>     http://lists.osgeo.org/mailman/listinfo/geomoose-users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150107/6613a666/attachment-0001.html>


More information about the Geomoose-users mailing list