[NEWBIE] Using Mapserver and PROJECTION

François TOURDE fr-ms at TOURDE.ORG
Sun Jun 26 09:09:48 PDT 2005


Le 12960ième jour après Epoch,
Frank Warmerdam écrivait:

> On 6/26/05, François TOURDE <fr-ms at tourde.org> wrote:
>> Hi the list.
>> 
>> I'm a newbie using mapserver, and in geodata. :( ... I've a probably
>> simple problem using the image output:
>> 
>> On my .MAP file, I have the following lines:
>> 
>> # Mode latlong
>>   EXTENT 2.8830 42.683 7.5 43.950 # Geographic
>>   PROJECTION "init=epsg:4326" END
>>   UNITS DD
>> 
>> All my layers have no PROJECTION infos.
>> 
>> When I replace the above lines by:
>> 
>> # mode Collignon
>>   EXTENT 205512.50       4889370.83 521106.75       5051672.48
>>   PROJECTION
>>    "proj=collg"
>>   END
>>   UNITS METERS
>> 
>> the image is ... blank. No coast lines, no features, etc...
>> 
>> Could you point me the problem?
>
> François,
>
> It could be a number of things, but your bounds do seem reasonable.
> I would suggest adding an explicit ellipse definition:
>
> PROJECTION
>   "proj=collg"
>   "ellps=WGS84"
> END

I do the try... same blank image :(

> Use normal debugging techniques.  For instance, check
> your error log

No errors on apache log:

[Sun Jun 26 18:06:35 2005].738511 msDrawMap(): Layer 1 (polb), 0.000s
[Sun Jun 26 18:06:35 2005].739360 msDrawMap(): Layer 2 (coast), 0.001s
[Sun Jun 26 18:06:35 2005].739597 msDrawMap(): Layer 3 (depth), 0.000s
[Sun Jun 26 18:06:35 2005].739687 msDrawMap(): Drawing Label Cache, 0.000s
[Sun Jun 26 18:06:35 2005].739715 msDrawMap() total time: 0.002s

> try rendering with shp2img, as that can provide
> better feedback. 

Probably, but it gives me a SEGFAULT on my Debian... I will try a
strace... later :)

> Turn on debugging.

Already turned on.

Many thanks for your response.



More information about the MapServer-users mailing list