<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thank you to everybody for your help! Now, the map file is fixed.</div>

<div> </div>

<div>I changed the projection to EPSG:4326 and the associated coordinates of the extent (e.g. 13.7 50.6 15.3 51.8). In the DATA string I left out the schema attribut. The png of the tool shp2img is showing the points.</div>

<div> </div>

<div>Greetings, Geograefin</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 07. Januar 2015 um 17:54 Uhr<br/>
<b>Von:</b> "Jeff McKenna" <jmckenna@gatewaygeomatics.com><br/>
<b>An:</b> mapserver-users@lists.osgeo.org<br/>
<b>Betreff:</b> Re: [mapserver-users] map file with connection to postgis</div>

<div name="quoted-content">It could also be your extents:<br/>
<br/>
- remove all layers from your mapfile, except for the PG one<br/>
- remove all projection blocks from your mapfile<br/>
- connect through ogrinfo commandline to that layer<br/>
<br/>
ogrinfo PG:"host=127.0.0.1 user=postgres password=postgres<br/>
dbname=test port=5432"<br/>
<br/>
- use the ogrinfo command with the layername and the -summary switch to<br/>
get the PG layer's extents<br/>
<br/>
ogrinfo PG:"host=127.0.0.1 user=postgres password=postgres dbname=test<br/>
port=5432" yourPGlayername -summary<br/>
<br/>
- use that extent for the EXTENT parameter in your mapfile<br/>
- re-test with shp2img command<br/>
<br/>
shp2img -m postgis.map -o ttt.png -map_debug 3<br/>
<br/>
<br/>
-jeff<br/>
<br/>
<br/>
<br/>
--<br/>
Jeff McKenna<br/>
MapServer Consulting and Training Services<br/>
<a href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
On 2015-01-07 12:40 PM, Lime, Steve D (MNIT) wrote:<br/>
> If you get an image then at least no error is being generated. Are you<br/>
> sure the layer you’re trying to view is on? There’s a switch in shp2img<br/>
> to turn on a layer or you can set STATUS DEFAULT in the layer definition.<br/>
><br/>
> Steve<br/>
><br/>
> *From:*mapserver-users-bounces@lists.osgeo.org<br/>
> [mailto:mapserver-users-bounces@lists.osgeo.org] *On Behalf Of<br/>
> *geo.graefin@web.de<br/>
> *Sent:* Wednesday, January 07, 2015 10:27 AM<br/>
> *To:* jt@mapmedia.de; mapserver-users@lists.osgeo.org<br/>
> *Subject:* Re: [mapserver-users] map file with connection to postgis<br/>
><br/>
> Hello Jörg,<br/>
><br/>
> I get an empty picture when I create a png with the tool shp2img.<br/>
><br/>
> Thanks for helping!<br/>
><br/>
> *Gesendet:* Mittwoch, 07. Januar 2015 um 16:44 Uhr<br/>
> *Von:* "Jörg Thomsen" <jt@mapmedia.de <mailto:jt@mapmedia.de>><br/>
> *An:* mapserver-users@lists.osgeo.org<br/>
> <mailto:mapserver-users@lists.osgeo.org><br/>
> *Betreff:* Re: [mapserver-users] map file with connection to postgis<br/>
><br/>
> Hi,<br/>
><br/>
> Am 07.01.2015 um 16:33 schrieb geo.graefin@web.de<br/>
> <mailto:geo.graefin@web.de>:<br/>
>> When I leave out "schema=public" in the string of "DATA" in my map file<br/>
>> then i get the following message:<br/>
>><br/>
>> ëPNG<br/>
>>→<br/>
>> IHDR♥Þ♥Þ☺♥wmFº♥PLTE ºz=┌☺tRNS @µÏf æIDATx£Ý┴1☺┬á§Om<br/>
>> ?á<br/>
>> ¥♠ý? ☺°1ù! IEND«B`é<br/>
><br/>
> looks like this is a png-image. Have you tried to open this file with an<br/>
> image-viewer?<br/>
><br/>
> Jörg<br/>
<br/>
<br/>
<br/>
_______________________________________________<br/>
mapserver-users mailing list<br/>
mapserver-users@lists.osgeo.org<br/>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div>
</div>
</div>
</div></div></body></html>