[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] Re: Shape File not appearing
From:       forums <forums () craniumjuice ! com>
Date:       2011-12-20 12:34:34
Message-ID: CACC0xJ+10AUUbfVJmnDopbHAO7oFJWWyKyYJSbV94BodsB9xUw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


What units are in your shapefile?  The thing that jumps out at me, is your
units is in Meters.  So the extent gives about at 15x8m view.  That's
pretty small.
Maybe comment out the  UNITS METERS part just to see how it goes.

Jerl

On Tue, Dec 20, 2011 at 12:25 AM, knasia <knasia@poczta.fm> wrote:

> My mapfile generates tile which is empty (white).
>
> My mapfile contains a code which is beneath:
>
> MAP
>  NAME name
>  STATUS ON
>  OUTPUTFORMAT
>  NAME png
>  DRIVER "GD/PNG"
>  MIMETYPE "image/png"
>  TRANSPARENT ON
>  IMAGEMODE RGB
>  EXTENSION "png"
>  END
>  SIZE 256 256
>  EXTENT         -97.238976 41.619778 -82.122902 49.385620
> UNITS METERS
> SHAPEPATH "/pathToShapes/shapes/"
>
>  WEB
>  TEMPLATE "myPage.php"
>        IMAGEPATH "/path/"
>        IMAGEURL "validURL"
>  END
>
>  QUERYMAP
>  SIZE 256 256
>  STATUS ON
>  STYLE HILITE
>  COLOR 255 0 0
>  END
>
>        LAYER
>                NAME map1
>                        PROJECTION
>                                "init=epsg:4326"
>                        END
>                        TYPE LINE
>                        STATUS ON
>                        DATA "waterways"
>                        CLASS
>                                NAME "test"
>                                OUTLINECOLOR 0 0 0
>                        END
>
>        END #end of layer
>  END
> END
>
>
> My shapefiles are in folder shapes and there are 3 files:
> waterways.shp
> waterways.shx
> waterways.dbf
>
> Could you help?
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
A computer without Windows is like chocolate cake without mustard.

[Attachment #5 (text/html)]

What units are in your shapefile?  The thing that jumps out at me, is your units is \
in Meters.  So the extent gives about at 15x8m view.  That&#39;s pretty \
small.<div>Maybe comment out the  UNITS METERS part just to see how it goes.</div> \
<div><br></div><div>Jerl<br><br><div class="gmail_quote">On Tue, Dec 20, 2011 at \
12:25 AM, knasia <span dir="ltr">&lt;<a \
href="mailto:knasia@poczta.fm">knasia@poczta.fm</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> My mapfile generates tile which is empty (white).<br>
<br>
My mapfile contains a code which is beneath:<br>
<br>
MAP<br>
 NAME name<br>
 STATUS ON<br>
 OUTPUTFORMAT<br>
  NAME png<br>
  DRIVER &quot;GD/PNG&quot;<br>
  MIMETYPE &quot;image/png&quot;<br>
  TRANSPARENT ON<br>
  IMAGEMODE RGB<br>
  EXTENSION &quot;png&quot;<br>
 END<br>
 SIZE 256 256<br>
 EXTENT         -97.238976 41.619778 -82.122902 49.385620<br>
UNITS METERS<br>
SHAPEPATH &quot;/pathToShapes/shapes/&quot;<br>
<br>
 WEB<br>
 TEMPLATE &quot;myPage.php&quot;<br>
        IMAGEPATH &quot;/path/&quot;<br>
        IMAGEURL &quot;validURL&quot;<br>
  END<br>
<br>
  QUERYMAP<br>
  SIZE 256 256<br>
  STATUS ON<br>
  STYLE HILITE<br>
  COLOR 255 0 0<br>
 END<br>
<br>
        LAYER<br>
                NAME map1<br>
                        PROJECTION<br>
                                &quot;init=epsg:4326&quot;<br>
                        END<br>
                        TYPE LINE<br>
                        STATUS ON<br>
                        DATA &quot;waterways&quot;<br>
                        CLASS<br>
                                NAME &quot;test&quot;<br>
                                OUTLINECOLOR 0 0 0<br>
                        END<br>
<br>
        END #end of layer<br>
 END<br>
END<br>
<br>
<br>
My shapefiles are in folder shapes and there are 3 files:<br>
waterways.shp<br>
waterways.shx<br>
waterways.dbf<br>
<br>
Could you help?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a \
href="http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.html" \
target="_blank">http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.html</a><br>


Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
 <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" \
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br> \
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>A computer \
without Windows is like chocolate cake without mustard.<br> </div>



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic