Re: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Frank Warmerdam

Chad Clabaugh wrote:

Am I not specifying my projection by using "init=epsg:4326" within the
PROJECTION BLOCK  I have tried as many different projections as I can
find. Including 4326, 900913, 3785, and the following block...


Chad,

You need to specify a PROJECTION block on your LAYER *as well as*
on your MAP object. If everything is in the same coordinate system
then they can match.  Your sample map (fragment?) only had a
projection declaration on the map.

Best regards,


Message: 3
Date: Mon, 19 Jan 2009 20:16:28 -0800
From: "Paul Ramsey" 

You need to specify the PROJECTION of your LAYER.

P.

...


MAP

  NAME COVERAGE

  STATUS ON

  SIZE 1400 900

  EXTENT 639000.00 4535300.00 689900.00 4582600.00

  UNITS METERS

  SHAPEPATH "shapefiles"

  IMAGECOLOR 220 220 220



  IMAGETYPE PNG



  PROJECTION

"init=epsg:4326"

  END



  LAYER

NAME CoverageMap

TYPE POLYGON

STATUS DEFAULT

DATA notforchad



CLASS

  STYLE

OUTLINECOLOR 255 128 128

COLOR 225 0 0

  END

END



  END

END




--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Chad Clabaugh
Am I not specifying my projection by using "init=epsg:4326" within the
PROJECTION BLOCK  I have tried as many different projections as I can
find. Including 4326, 900913, 3785, and the following block...

PROJECTION
"proj=merc"
"a=6378137"
"b=6378137"
"lat_ts=0.0"
"lon_0=0.0"
"x_0=0.0"
"y_0=0"
"k=1.0"
"units=m"
"nadgri...@null"
"wktext"
"no_defs"
END

...which didn't work for me.

--

Message: 3
Date: Mon, 19 Jan 2009 20:16:28 -0800
From: "Paul Ramsey" 
Subject: Re: [mapserver-users] google tiles
To: "Chad Clabaugh" 
Cc: mapserver-users@lists.osgeo.org
Message-ID:
<30fe546d0901192016u1ad26e6fy7ec54e13da416...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

You need to specify the PROJECTION of your LAYER.

P.

On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh 
wrote:
> Greetings,
>
> I have been trying to generate google tiles from shapefiles using
> mapserver.  I have been able to successfully generate maps by calling the
> url
>
http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mo
de=map
> . but when I attempt to use the url
>
http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage
.map&mode=tile&tile=4+6+4
> I receive only empty images, regardless of tile specified.
>
>
>
> Thanks for any help!
>
>
>
> MAP
>
>   NAME COVERAGE
>
>   STATUS ON
>
>   SIZE 1400 900
>
>   EXTENT 639000.00 4535300.00 689900.00 4582600.00
>
>   UNITS METERS
>
>   SHAPEPATH "shapefiles"
>
>   IMAGECOLOR 220 220 220
>
>
>
>   IMAGETYPE PNG
>
>
>
>   PROJECTION
>
> "init=epsg:4326"
>
>   END
>
>
>
>   LAYER
>
> NAME CoverageMap
>
> TYPE POLYGON
>
> STATUS DEFAULT
>
> DATA notforchad
>
>
>
> CLASS
>
>   STYLE
>
> OUTLINECOLOR 255 128 128
>
> COLOR 225 0 0
>
>   END
>
> END
>
>
>
>   END
>
> END
>
>
>
> Chad Clabaugh
>
> Technical Support, Engineering
>
> Office: 260.760.6398
>
> Mobile: 260.466.8861
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


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


Re: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Rahkonen Jukka
Have you specified the projection also inside LAYER?  There are two places for 
giving projections, in MAP section to give the set of available output 
projections, and in LAYER section to tell Mapserver which projection the layer 
data are in.

-Jukka Rahkonen- 

> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
> Chad Clabaugh
> Lähetetty: 20. tammikuuta 2009 16:29
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73
> 
> Am I not specifying my projection by using "init=epsg:4326" 
> within the PROJECTION BLOCK  I have tried as many 
> different projections as I can find. Including 4326, 900913, 
> 3785, and the following block...
> 
> PROJECTION
>   "proj=merc"
>   "a=6378137"
>   "b=6378137"
>   "lat_ts=0.0"
>   "lon_0=0.0"
>   "x_0=0.0"
>   "y_0=0"
>   "k=1.0"
>   "units=m"
>   "nadgri...@null"
>   "wktext"
>   "no_defs"
> END
> 
> ...which didn't work for me.
> 
> --
> 
> Message: 3
> Date: Mon, 19 Jan 2009 20:16:28 -0800
> From: "Paul Ramsey" 
> Subject: Re: [mapserver-users] google tiles
> To: "Chad Clabaugh" 
> Cc: mapserver-users@lists.osgeo.org
> Message-ID:
>   <30fe546d0901192016u1ad26e6fy7ec54e13da416...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> You need to specify the PROJECTION of your LAYER.
> 
> P.
> 
> On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh 
> 
> wrote:
> > Greetings,
> >
> > I have been trying to generate google tiles from shapefiles using 
> > mapserver.  I have been able to successfully generate maps 
> by calling 
> > the url
> >
> http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/c
> overage.map&mo
> de=map
> > . but when I attempt to use the url
> >
> http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/maps
> erver/coverage
> .map&mode=tile&tile=4+6+4
> > I receive only empty images, regardless of tile specified.
> >
> >
> >
> > Thanks for any help!
> >
> >
> >
> > MAP
> >
> >   NAME COVERAGE
> >
> >   STATUS ON
> >
> >   SIZE 1400 900
> >
> >   EXTENT 639000.00 4535300.00 689900.00 4582600.00
> >
> >   UNITS METERS
> >
> >   SHAPEPATH "shapefiles"
> >
> >   IMAGECOLOR 220 220 220
> >
> >
> >
> >   IMAGETYPE PNG
> >
> >
> >
> >   PROJECTION
> >
> > "init=epsg:4326"
> >
> >   END
> >
> >
> >
> >   LAYER
> >
> > NAME CoverageMap
> >
> > TYPE POLYGON
> >
> > STATUS DEFAULT
> >
> > DATA notforchad
> >
> >
> >
> > CLASS
> >
> >   STYLE
> >
> > OUTLINECOLOR 255 128 128
> >
> > COLOR 225 0 0
> >
> >   END
> >
> > END
> >
> >
> >
> >   END
> >
> > END
> >
> >
> >
> > Chad Clabaugh
> >
> > Technical Support, Engineering
> >
> > Office: 260.760.6398
> >
> > Mobile: 260.466.8861
> >
> >
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users