Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-30 Thread frieda
Ok, I don't know exactly why but if I set EPSG 31467 for every feature source
I have my Map goes visible and it's in the right location.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-29 Thread frieda
Could you tell me how I can do this? I'm not familiar with fusion.

But I clicked on validate and get some warnings:


Validating resource:
Session:4b3bf33c-42a2-11ea-8000-208d0a1054f9_en_MTI3LjAuMC4x0AFC0AFB0AFA//328459ef-d516-44d7-b3a6-d4281c2cbc3b.MapDefinition
Information - Warning_MapDefinition_LayerMissingLegendLabel: Layer g does
not have a legend label
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/sp_f_g_F.FeatureSource has a different coordinate
system than the map, this will impact performance as the coordinates are
transformed while rendering the map. Maestro cannot validate the extent of
the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/TestProj_SQL.FeatureSource has a different
coordinate system than the map, this will impact performance as the
coordinates are transformed while rendering the map. Maestro cannot validate
the extent of the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/Mauer_F.FeatureSource has a different coordinate
system than the map, this will impact performance as the coordinates are
transformed while rendering the map. Maestro cannot validate the extent of
the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/sp_f_einr_F.FeatureSource has a different coordinate
system than the map, this will impact performance as the coordinates are
transformed while rendering the map. Maestro cannot validate the extent of
the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/sp_gruen_teilgruenflaeche_F.FeatureSource has a
different coordinate system than the map, this will impact performance as
the coordinates are transformed while rendering the map. Maestro cannot
validate the extent of the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/sp_Lieg_gebaeude_F.FeatureSource has a different
coordinate system than the map, this will impact performance as the
coordinates are transformed while rendering the map. Maestro cannot validate
the extent of the data.
Warning - Warning_MapDefinition_LayerReprojection:
Library://TestProj/Data/sp_f_weg_F.FeatureSource has a different coordinate
system than the map, this will impact performance as the coordinates are
transformed while rendering the map. Maestro cannot validate the extent of
the data.


Validating resource: Library://TestProj/Data/TestProj_SQL.FeatureSource
Warning - Warning_FeatureSource_DefaultSpatialContext: Spatial context
extent appears to be invalid (or is the default extent returned by FDO
provider. Meaning it very likely does not truly represent the extent of your
data)

So maybe I have to reproject my Layers too or MapGuide do this
automatically?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-29 Thread Jackie Ng
Can you look at your EPSG 3857 projected map definition in Fusion with
external base layers on? Does the problem happen there too?

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-29 Thread frieda
Do you mean the initial map view? The values have changed

EPSG 31467

Lower left: x=3474969.42838105 y=5494505.08075242
Upper right: x=3475408.42921736 y=5494659.08080777

EPSG 3857

Lower left: x=963391.96809186 y=6375021.09056832
Upper right: x=964066.729695921 y=6375261.93779655



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-29 Thread Jackie Ng
If you changed the map projection in Maestro, did the bounding box
coordinates of the Map Definition change as well? If not, you're probably
looking at the 3857 map but looking at it from the starting point of the
un-projected 31467 bounding box view. In this case, you'll have to update
the bounding box of the Map Definition with the projected coordinates as
well.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-29 Thread frieda
Thanks for your help. 
I did set my map projection to EPSG 3857, now I can see the right location
in OSM in Kaliopa Movile Viewer but I can't see my Map now (it's also not
visible if I use the Preview in Maestro). If I set the projection back to
EPSG 31467 my map goes visible. 

What I'm missing here?





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How do I set the right projection in OL for OSM?

2020-01-28 Thread Jackie Ng
OpenLayers 2 doesn't do raster reprojection. You stating the
displayProjection to be EPSG:3857 does not mean the MapGuide-rendered map
image will be reprojected to it. What you should be doing is modifying that
Map Definition so that its coordinate system is WGS84.PseudoMercator (which
is EPSG:3857) and let MapGuide do all the reprojecting server-side when
rendering the image.

The displayProjection is then merely a declaration in OpenLayers that the
map image that comes back from MapGuide is indeed in EPSG:3857 and
everything should nicely line up.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] How do I set the right projection in OL for OSM?

2020-01-27 Thread frieda
Hello,

I'm using the Kaliopa Mobile Viewer to display my MapGuide map and it works
great so far but now I would like to add Open Street Map as BaseLayer but my
map is always placed somewhere in the black sea.

I know I have to set the right projection in Openlayers but how?

In Maestro I can see the following information about the Coordinate System
of my Map.

PROJCS["DHDN.Gauss3d-3",GEOGCS["DHDN.LL",DATUM["DHDN",SPHEROID["BESSEL",6377397.155,299.15281535],TOWGS84[582.,105.,414.,-1.04,-0.35,3.08,8.3000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",350.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",1.],PARAMETER["central_meridian",9.00],PARAMETER["latitude_of_origin",0.00],UNIT["Meter",1.00]]

If I understand this correctly, then I get EPSG:4326, because I see
"TOWGS84" in that string, right? But OSM works with EPSG: 3857. So I tried
the following openlayers map Option:

projection: "EPSG:4326",
displayProjection: "EPSG:3857"

But this does not do anything, my map is still in the black sea.
Could someone give me a hint?

I'm working with OpenLayers 2 and MapGuide Server 2.5.2




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users