<p dir="ltr"><br>
On Jan 8, 2015 5:58 AM, <<a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>> wrote:<br>
><br>
> <br>
> This works, thanks a lot! So the coordinates of the extent in the mapbook.xml always have to be cartesian coordinates?<br></p>
<p dir="ltr">The mapbook extent coordinates have to match the mapbook projection.<br></p>
<p dir="ltr">> <br>
> The overlay file shows a pink screen. I am sure, there is still a mistake with the projection!?<br>
> mapbook.xml and the map file are in appendix.<br>
> <br>
> Greetings, Geograefin<br>
> <br>
> Gesendet: Mittwoch, 07. Januar 2015 um 21:34 Uhr<br>
><br>
> Von: "TC Haddad" <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>><br>
> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a><br>
> Cc: "Brent Fraser" <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>>, "<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>" <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
> Betreff: Re: Re: Re: [Geomoose-users] Change projection<br>
> <br>
> And in the Mapbook.xml you need:<br>
><br>
> <param name="projection">EPSG:3857</param><br>
> <br>
> And something like these coordinates<br>
><br>
> <param name="max_extent"> -914798.3545,5547493.7648,3194456.2861,7695068.5115 </param><br>
> <param name="initial_extent"> 528332.7673, 5985325.0497, 1748879.1828, 7254791.2739</param><br>
><br>
> <br>
> <br>
> On Wed, Jan 7, 2015 at 12:27 PM, TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br>
>><br>
>> You are very close you want to make the projections in your map file like the below:<br>
>> <br>
>> Tanya<br>
>><br>
>> MAP<br>
>> #--------------------------------------------------------------------------------<br>
>> #---------------------------------MAPFILEHEADER----------------------------------<br>
>> #--------------------------------------------------------------------------------<br>
>><br>
>> PROJECTION<br>
>> 'init=epsg:3857' #projection of the map<br>
>> END<br>
>> #--------------------------------------------------------------------------------<br>
>> #-----------------------------------WEB-SECTION----------------------------------<br>
>> #--------------------------------------------------------------------------------<br>
>> WEB<br>
>><br>
>> WMS_SRS "EPSG:3857" #projection of the service<br>
>><br>
>><br>
>> END<br>
>> #--------------------------------------------------------------------------------<br>
>> #-------------------------------------LAYER--------------------------------------<br>
>> #--------------------------------------------------------------------------------<br>
>> LAYER<br>
>> ...<br>
>> PROJECTION<br>
>> 'init=epsg:4326' #projection of the layer<br>
>> END<br>
>> ...<br>
>> END<br>
>> <br>
>> END #end map<br>
>> <br>
>> On Wed, Jan 7, 2015 at 12:20 PM, <<a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>> wrote:<br>
>>><br>
>>> Now the map file is fixed. With the tool shp2img the png shows the points.<br>
>>> But still I have problems with the right projection in GeoMOOSE.<br>
>>> <br>
>>> 1. In my map file the layer has EPSG:4326.<br>
>>> 2. In the mapbook.xml I have entered EPSG:4326 as the projection too and the following coordinates:<br>
>>> <param name="max_extent">5,40,10,70</param><br>
>>> <param name="initial_extent">9,48,18,55</param><br>
>>> 3. In settings.ini and local_settings.ini I have entered EPSG:4326 too.<br>
>>> 4. The references in geomoose.html are the two:<br>
>>> <script type="text/javascript" src="projections/EPSG3857.js"></script><br>
>>> <script type="text/javascript" src="projections/EPSG4326.js"></script><br>
>>> 5. I have the two js files of EPSG:3857 and EPSG:4326.<br>
>>> <br>
>>> Result:<br>
>>> The map in GeoMOOSE shows the zero point (is this correct in English?) in the Atlantic and in the status bar there is the following message:<br>
>>> must be between in (-90,90) ... no playing at the poles, yet<br>
>>> <br>
>>> Obviously I did a mistake, but which one?<br>
>>> <br>
>>> Thank you again for helping!<br>
>>> <br>
>>> Greetings, Geograefin<br>
>>> Gesendet: Mittwoch, 07. Januar 2015 um 17:04 Uhr<br>
>>> Von: "Brent Fraser" <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>><br>
>>> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>, <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
>>> Betreff: Re: Aw: Re: [Geomoose-users] Change projection<br>
>>> 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.<br>
>>><br>
>>> Best Regards,<br>
>>> Brent Fraser<br>
>>><br>
>>> On 1/7/2015 7:14 AM, <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a> wrote:<br>
>>>><br>
>>>> <br>
>>>> Sorry, I have forgotten the appendix with the screenshot of GeoMOOSE.<br>
>>>> Gesendet: Mittwoch, 07. Januar 2015 um 14:46 Uhr<br>
>>>> Von: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a><br>
>>>> An: "Brent Fraser" <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>>, <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
>>>> Betreff: Aw: Re: [Geomoose-users] Change projection<br>
>>>> 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.<br>
>>>> <br>
>>>> Greetings, Geograefin<br>
>>>> <br>
>>>> Gesendet: Dienstag, 06. Januar 2015 um 17:40 Uhr<br>
>>>> Von: "Brent Fraser" <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>><br>
>>>> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>, "GeoMOOSE Users List" <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
>>>> Betreff: Re: [Geomoose-users] Change projection<br>
>>>> 2.6.1 works fine too.<br>
>>>><br>
>>>> Best Regards,<br>
>>>> Brent Fraser<br>
>>>><br>
>>>> On 1/6/2015 8:57 AM, Brent Fraser wrote:<br>
>>>>><br>
>>>>> Geograefin,<br>
>>>>><br>
>>>>> I don't think 2.6 is very different with the way it handles coordinate systems, but I will try it to make sure.<br>
>>>>><br>
>>>>> 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.<br>
>>>>><br>
>>>>> I used your estimates for the extents in the mapbook.xml<br>
>>>>> <param name="max_extent">100000,1000000,999999,9999999</param><br>
>>>>> <param name="initial_extent">295743,5511505,709358,5755456</param><br>
>>>>> <br>
>>>>><br>
>>>>> Best Regards,<br>
>>>>> Brent Fraser<br>
>>>>><br>
>>>>> On 1/6/2015 8:03 AM, <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a> wrote:<br>
>>>>>><br>
>>>>>> Dear Brant Fraser,<br>
>>>>>> <br>
>>>>>> thank you for your answer!<br>
>>>>>> <br>
>>>>>> I use GeoMOOSE 2.6. Does this make a difference?<br>
>>>>>> Cannot I use several coordinate systems (EPSG:25833 and EPSG:3857)?<br>
>>>>>> What have you entered as the max_extent in mapbook.xml?<br>
>>>>>> <br>
>>>>>> Sincerely, Geograefin<br>
>>>>>> Gesendet: Dienstag, 06. Januar 2015 um 15:11 Uhr<br>
>>>>>> Von: "Brent Fraser" <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>><br>
>>>>>> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>, <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
>>>>>> Betreff: Re: [Geomoose-users] Change projection<br>
>>>>>> Geograephin,<br>
>>>>>><br>
>>>>>> I followed the instructions and got something reasonable:<br>
>>>>>><br>
>>>>>> <deleted image><br>
>>>>>><br>
>>>>>> How can you tell your setup is not working properly?<br>
>>>>>><br>
>>>>>> (Note that only the ArcGIS server will return tiles in the EPSG:25833 coordinate system for the Background group).<br>
>>>>>><br>
>>>>>> Best Regards,<br>
>>>>>> Brent Fraser<br>
>>>>>><br>
>>>>>> On 1/6/2015 6:06 AM, <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a> wrote:<br>
>>>>>>><br>
>>>>>>> Hello,<br>
>>>>>>> <br>
>>>>>>> here more in detail what I did:<br>
>>>>>>> <br>
>>>>>>> 1. I created a new js file including the declaration of the EPSG code from <a href="http://spatialreference.org">spatialreference.org</a> and deleted the one of EPSG:26915.<br>
>>>>>>> Proj4js.defs["EPSG:25833"] = "+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs";<br>
>>>>>>> <br>
>>>>>>> 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.<br>
>>>>>>> <script type="text/javascript" src="projections/EPSG3857.js"></script><br>
>>>>>>> <script type="text/javascript" src="projections/EPSG25833.js"></script><br>
>>>>>>> <br>
>>>>>>> 3. I changed the parameters projection, max_extent and initial_extent in mapbook.xml.<br>
>>>>>>> <param name="projection">EPSG:25833</param><br>
>>>>>>> <param name="zoomto"><![CDATA[<br>
>>>>>>> {<br>
>>>>>>> "Zoom To:" : {<br>
>>>>>>> "Sachsen und Niederschlesien" : [295743,5511505,709358,5755456]<br>
>>>>>>> }<br>
>>>>>>> }<br>
>>>>>>> ]]></param><br>
>>>>>>> <param name="max_extent">100000,1000000,999999,9999999</param><br>
>>>>>>> <param name="initial_extent">295743,5511505,709358,5755456</param><br>
>>>>>>> <param name="measure_tool.show_area_segments">false</param><br>
>>>>>>> <param name="layer_controls.legend.on">false</param><br>
>>>>>>> <param name="layer_controls.up.on">false</param><br>
>>>>>>> <param name="layer_controls.down.on">false</param><br>
>>>>>>> <param name="layer_controls.metadata.on">false</param><br>
>>>>>>> <param name="layer_controls.legend.on">true</param><br>
>>>>>>> <param name="group_checkboxes">false</param><br>
>>>>>>> <param name="default_tab">Catalog</param><br>
>>>>>>> <param name="ground_units">m</param><br>
>>>>>>> <param name="maxResolution">156543.03390625</param><br>
>>>>>>> <param name="numZoomLevels">20</param><br>
>>>>>>> <param name="coordinate_display.usng">false</param><br>
>>>>>>> <param name="jumpto_scales"><![CDATA[<br>
>>>>>>> {<br>
>>>>>>> "1:100000" : 100000,<br>
>>>>>>> "1:50000" : 50000,<br>
>>>>>>> "1:24000" : 24000,<br>
>>>>>>> "1:10000" : 10000,<br>
>>>>>>> "1:5000" : 5000<br>
>>>>>>> }<br>
>>>>>>> ]]></param><br>
>>>>>>> <br>
>>>>>>> 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.<br>
>>>>>>> <br>
>>>>>>> 4. I changed the projection of the map in local_settings.ini and settings.ini:<br>
>>>>>>> [map]<br>
>>>>>>> projection=EPSG:25833<br>
>>>>>>> <br>
>>>>>>> That is what I have done. Is there anywhere a reference to the "old" projection of EPSG:26915? Anything I have missing?<br>
>>>>>>> Unfortunately I have no own data, that I can proof, because there is a mistake in the map file of the data's source.<br>
>>>>>>> <br>
>>>>>>> Thanks a lot for your help!<br>
>>>>>>> <br>
>>>>>>> Greetings, Geograefin<br>
>>>>>>> Gesendet: Montag, 05. Januar 2015 um 22:16 Uhr<br>
>>>>>>> Von: "TC Haddad" <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>><br>
>>>>>>> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a><br>
>>>>>>> Betreff: Re: Re: [Geomoose-users] Change projection<br>
>>>>>>> <br>
>>>>>>> Let's back up - can you describe your symptoms in more detail?<br>
>>>>>>> <br>
>>>>>>> - You started from the demo<br>
>>>>>>> - You made your projection changes and something didn't work<br>
>>>>>>> <br>
>>>>>>> - is your data displaying correctly in the map?<br>
>>>>>>> - do you get a pink screen when you try to view your data?<br>
>>>>>>> - are the coordinates displaying below the map incorrect? or duplicated in 2 projections?<br>
>>>>>>> <br>
>>>>>>> More items to double check or try:<br>
>>>>>>> <br>
>>>>>>> - Did you set appropriate initial and maximum extent values in the Mapbook?<br>
>>>>>>> ie. <param name="max_extent">7110968,-610403,9234765,956456</param><br>
>>>>>>> <param name="initial_extent">7296650,228568,7570144,408049</param><br>
>>>>>>> - Did you set the correct units in the Mapbook?<br>
>>>>>>> <param name="ground_units">ft</param><br>
>>>>>>> - Did you set appropriate zoom levels in the Mapbook?<br>
>>>>>>> <param name="fractional_zoom">true</param><br>
>>>>>>> <param name="scales">0.25,0.5,1,2,4,8,16,32,64,128,256,512,1024,2048</param><br>
>>>>>>> <br>
>>>>>>> <br>
>>>>>>> On Mon, Jan 5, 2015 at 11:14 AM, <<a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>> wrote:<br>
>>>>>>>><br>
>>>>>>>> Thank you for your answer,<br>
>>>>>>>> <br>
>>>>>>>> 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?<br>
>>>>>>>> <br>
>>>>>>>> Gesendet: Montag, 05. Januar 2015 um 18:10 Uhr<br>
>>>>>>>> Von: "TC Haddad" <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>><br>
>>>>>>>> An: <a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a><br>
>>>>>>>> Betreff: Re: [Geomoose-users] Change projection<br>
>>>>>>>> Some ideas to check if you started from the Demo file:<br>
>>>>>>>> Did you place the epsg25833.js file that you created in Step 2 in the projections directory?<br>
>>>>>>>> Did you remove the reference to the old projection from your HTML? ie.<br>
>>>>>>>> delete <script type=”text/javascript” src=”projections/EPSG26915.js”></script><br>
>>>>>>>> insert <script type=”text/javascript” src=”projections/EPSG25833.js”></script><br>
>>>>>>>> <br>
>>>>>>>> On Mon, Jan 5, 2015 at 8:35 AM, <<a href="mailto:geo.graefin@web.de">geo.graefin@web.de</a>> wrote:<br>
>>>>>>>>><br>
>>>>>>>>> Dear community,<br>
>>>>>>>>> <br>
>>>>>>>>> I have problems with changing the projection of my GeoMOOSE project. I have followed the instructions at the GeoMOOSE site [<a href="http://docs.geomoose.org/2.7/docs/projections.html">http://docs.geomoose.org/2.7/docs/projections.html</a>]. 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.<br>
>>>>>>>>> Do you have any ideas, what instructions are missing or what i did wrong?<br>
>>>>>>>>> <br>
>>>>>>>>> I would be very grateful for help! Thank you in advance!<br>
>>>>>>>>> <br>
>>>>>>>>> Greetings, Geograefin<br>
>>>>>>>>><br>
>>>>>>>>> _______________________________________________<br>
>>>>>>>>> Geomoose-users mailing list<br>
>>>>>>>>> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
>>>>>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
>>>>>>><br>
>>>>>>> <br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> Geomoose-users mailing list<br>
>>>>>>> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
>>>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
>>>>><br>
>>>>> <br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Geomoose-users mailing list<br>
>>>>> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
><br>
><br>
> _______________________________________________<br>
> Geomoose-users mailing list<br>
> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</p>