[Geomoose-users] Change projection

James Klassen klassen.js at gmail.com
Thu Jan 8 04:02:12 PST 2015


On Jan 8, 2015 5:58 AM, <geo.graefin at web.de> wrote:
>
>
> This works, thanks a lot! So the coordinates of the extent in the
mapbook.xml always have to be cartesian coordinates?

The mapbook extent coordinates have to match the mapbook projection.

>
> The overlay file shows a pink screen. I am sure, there is still a mistake
with the projection!?
> mapbook.xml and the map file are in appendix.
>
> Greetings, Geograefin
>
> Gesendet: Mittwoch, 07. Januar 2015 um 21:34 Uhr
>
> Von: "TC Haddad" <tchaddad at gmail.com>
> An: geo.graefin at web.de
> Cc: "Brent Fraser" <bfraser at geoanalytic.com>, "
geomoose-users at lists.osgeo.org" <geomoose-users at lists.osgeo.org>
> Betreff: Re: Re: Re: [Geomoose-users] Change projection
>
> And in the Mapbook.xml you need:
>
>         <param name="projection">EPSG:3857</param>
>
> And something like these coordinates
>
>          <param name="max_extent">
-914798.3545,5547493.7648,3194456.2861,7695068.5115  </param>
>          <param name="initial_extent"> 528332.7673, 5985325.0497,
1748879.1828, 7254791.2739</param>
>
>
>
> On Wed, Jan 7, 2015 at 12:27 PM, TC Haddad <tchaddad at gmail.com> wrote:
>>
>> You are very close you want to make the projections in your map file
like the below:
>>
>> Tanya
>>
>> MAP
>>
#--------------------------------------------------------------------------------
>>
#---------------------------------MAPFILEHEADER----------------------------------
>>
#--------------------------------------------------------------------------------
>>
>>     PROJECTION
>>         'init=epsg:3857'     #projection of the map
>>     END
>>
#--------------------------------------------------------------------------------
>>
#-----------------------------------WEB-SECTION----------------------------------
>>
#--------------------------------------------------------------------------------
>>     WEB
>>
>>             WMS_SRS "EPSG:3857"         #projection of the service
>>
>>
>>     END
>>
#--------------------------------------------------------------------------------
>>
#-------------------------------------LAYER--------------------------------------
>>
#--------------------------------------------------------------------------------
>>       LAYER
>> ...
>>         PROJECTION
>>             'init=epsg:4326'     #projection of the layer
>>         END
>> ...
>>       END
>>
>> END     #end map
>>
>> On Wed, Jan 7, 2015 at 12:20 PM, <geo.graefin at web.de> wrote:
>>>
>>> Now the map file is fixed. With the tool shp2img the png shows the
points.
>>> But still I have problems with the right projection in GeoMOOSE.
>>>
>>> 1. In my map file the layer has EPSG:4326.
>>> 2. In the mapbook.xml I have entered EPSG:4326 as the projection too
and the following coordinates:
>>> <param name="max_extent">5,40,10,70</param>
>>> <param name="initial_extent">9,48,18,55</param>
>>> 3. In settings.ini and local_settings.ini I have entered EPSG:4326 too.
>>> 4. The references in geomoose.html are the two:
>>> <script type="text/javascript" src="projections/EPSG3857.js"></script>
>>> <script type="text/javascript" src="projections/EPSG4326.js"></script>
>>> 5. I have the two js files of EPSG:3857 and EPSG:4326.
>>>
>>> Result:
>>> 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:
>>> must be between in (-90,90) ... no playing at the poles, yet
>>>
>>> Obviously I did a mistake, but which one?
>>>
>>> Thank you again for helping!
>>>
>>> Greetings, Geograefin
>>> Gesendet: Mittwoch, 07. Januar 2015 um 17:04 Uhr
>>> Von: "Brent Fraser" <bfraser at geoanalytic.com>
>>> An: geo.graefin at web.de, geomoose-users at lists.osgeo.org
>>> Betreff: Re: Aw: Re: [Geomoose-users] Change projection
>>> 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> 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://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
>
>
> _______________________________________________
> 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/20150108/6299b5e0/attachment-0001.html>


More information about the Geomoose-users mailing list