Questions on projections, reference systems, map extents, scales
Vortex
vortex25 at GMX.DE
Sun Apr 24 15:10:26 PDT 2005
Hello!!
I'm quite new to all this mapserver/postgis/proj4/geoinformationsystem stuff.
Althought i've played around for a while with it and made many assumptions
how it works, i'm unsure if i got it right and have a lot of questions
too. Maybe somebody can confirm or disagree my conclusions and answer some
questions?
* I have to specify the coordinate system for every data source?
- At least for shapefiles and postgis layers the coordinate system
should be "embedded"? Why i have to specify it anyway?
- What happens if they don't match?
+ Is the lat/lon data simply related to the new reference system?
* WGS84 and NAD83 are *nearly* the same?
* geographic coordinate system means unprojected latitude/longitude values?
* WGS84 and NAD83 are "unprojected" lat/long coordinate systems by definition?
* latitude/longitude values are independent of the reference system, they
are always the same. But the reference system is getting important
if i want to calculate the absolute position of a point in 3d space
because the associated height value is based on the surface of
the reference ellipsoid?
* There are data sources available which does not have a reference
system at all and consists of "pure" lat/long data?
- If i specify a reference system in the mapfile for such data anyway,
the positions of this data source are asumed to be flat on the surface of
the specified reference ellipsoid?
* To do a projection (like lcc) it is absolutely necessary to have a
reference system, because it's necessary to know the 3d positions of
all data to perform the projection?
- Does mapserver consider the height of any point over the surface
of the reference ellipsoid for projection? Probably this is done
by proj4 lib anyway. Does it? Is it necessary?
* If i specify a latlong output projection and the source data is also
in latlong althought there is a reference system specified like NAD83,
there is no reprojection done?
- Is this faster than output to lcc for example?
- Isn't it totally regardless of which reference systems are specified
in this case?
* The map EXTENTS specified in the mapfile are always related to the
result of the output projection?
- For lcc they are in meter, for latlong they are in decimal degrees?
- In the lcc projection it is quite easy to set the origin of the
map by lat_0 lon_0 parameter if i want to zoom to a specific
lat/lon position having always the same extents.
+ Is this the usual way?
With lat/long output, the only way to change the origing is changing
the EXTENT?
- If i set k != 1 for lcc, the scale calculation goes wrong? So
zooming should always be done be modifing the map extents? Is the
k parameter useful in mapserver anyway?
* The SIZE and RESOLUTION paramter in mapfile are used to calculate the
real size of the displayed image. The specified map EXTENT is
fitted into this "window". Mapserver does not really know about
the units of the output projection. Therefore i have to specify
the UNITS in the mapfile. With a projection output in meter, the
scale can be calculated now. Based on the scale and the resolution,
the scalebar is generated.
- The documentation says, the scale is "Set most often by the application."
Is this really true? I don't know how to set it and i thought it should
be calculated by the mapserver itself?
- How is it possible for mapserver to calculate a scalbar for
lat/long output? I thought it should be even for projections difficult to
calculate a scalebar. Isn't it only correct for parts of the map
because of distortions? I thought this problem would be even more
difficult for unprojected maps? Is this only a rough estimation?
* What happens if there is projected INPUT data with units in meters
for example? I think it should work too if i specify the correct
projection. But is it internally "inverse" projected to latlong
coordinates to merge it with other data sources which are maybe
naturally in latlong coordinates and then reprojected to the
output projection?
Wow, that was quite a lot. Hopefully not too much. Sorry for
my bad english.
Thank you very much!
Klaus
More information about the MapServer-users
mailing list