[Geomoose-users] Problem with vector map not showing up

James Klassen klassen.js at gmail.com
Thu Nov 7 12:24:14 PST 2013


First thing to keep in mind is that there are three places projections
in play for any layer in a typical GeoMooose install.  One in GeoMoose,
and two in MapServer.

GeoMoose itself generally only deals with one projection at a time. 
This is the projection that the data is presented in on the map and is
the projection that is set in the mapbook.  Consequently, other
configurations parameters in the mapbook are specified in this
projection.  Also, since requests for map graphics from the map services
(tiles/WMS/etc.) are all in this projection, it means that your map
services have to be able to render in this projection.  In order to use
the standard tiled basemaps (Google Maps, OpenStreet Maps, etc.), the
demo uses EPSG:3857 which is the only projection they generally
support.  Note: You do not need to change this (and probably shouldn't
change this unless you know why you need to) to use local data stored in
a different projection.

In a typical GeoMoose install, including the demo, the rendering of
local data (e.g. shapefiles) is handled by MapServer (which to be clear
is a completely separate project from GeoMoose).  MapServer uses ".map"
files to tell it how to access and render data.  There are two places
projections come into play in these map files.  First, there is a global
map projection (MAP->PROJECTION) that sets the default projection that
MapServer will render maps in (and there is also the list of offered
projections for WMS services under MAP->WEB->METADATA->"wms_srs"). 
MAP->PROJECTION has to match what is used in the GeoMoose mapbook if WMS
is not used, and the projection used in GeoMoose has to be one of the
options in the "wms_srs" list if WMS is used.  Again, there is probably
no need to change this.  Secondly, MapServer needs to know what
projection your data is stored in.  This is set in
MAP->LAYER->PROJECTION.  This needs to be set to match your data (unless
you data happens to be in the same projection as the MAP->PROJECTION,
then MAP->LAYER->PROJECTION can be left out).   (As a note: I have seen
the QGIS Mapfile generator get these projections wrong even when QGIS is
displaying things correctly.  The proj.4 projection string used by QGIS
for the layer is the same format as what MapServer is expecting in
MAP->LAYER->PROJECTION.)

It sounds to me like you don't have the projection set correctly for
your data in QGIS and in MapServer.  (Also in QGIS, be sure you have
"Enable 'on the fly' CRS transformation" enabled otherwise it will
assume all your layers are in the same projection.  Also, it might help
to set your QGIS project projection to EPSG:3857.)


On 2013/11/7 11:37 AM, Behr Mirfathali wrote:
>
> I am having an issue with getting my data to show up using Geomoose demo.
>
>  
>
>  
>
> I renamed my shape files to parcels and edited mapbook.xml with the
> projection that was found using QGIS. My data did not show up. I have
> Geomoose initial extent proper according to the Google Earth layer.
>
>  
>
>  
>
> I then compared my shape files with the Geomoose demo parcels using
> AutoCad Map 2014 and they show up placed correctly.
>
>  
>
>  
>
> I then did the same comparison using QGIS and my parcels layer and the
> demo parcels layer do not show up correctly. My parcels show up down
> and to the right many miles from the demo parcels layer. Far away from
> the west coast of Oregon.
>
>  
>
>  
>
>  
>
>  
>
> I am new to QGIS and Geomoose so I have no idea what could be wrong as
> the data shows up perfectly in AutoCad Map. Any help would be
> appreciated.
>
>  
>
> *Behr Mirfathali* | Engineering Technician
>
> Direct 360.326.5582 | Fax 541.265.8946|
>
> behr at coastcom.net | www.coastcom.net <http://www.coastcom.net/>
>
> signature
>
>  
>
>  
>
>
>
> _______________________________________________
> 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/20131107/899769c7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2517 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20131107/899769c7/attachment.jpe>


More information about the Geomoose-users mailing list