[Mapserver-users] adding shp to mapfile /got it

Paul Dymecki millardymecki at sympatico.ca
Tue Mar 4 01:24:49 EST 2003


I finally found my error(s) i was using units meters, sizeunits meters
instead of sizeunits pixels,
i probably didn't need either one but oh well.  My php projection worked
fine so i didn't need any projection object either(everything under lcc
canada).
thx to everyone for the help,
Paul
----- Original Message -----
From: "Ed McNierney" <ed at topozone.com>
To: "Paul Dymecki" <millardymecki at sympatico.ca>; "Daniel Morissette"
<morissette at dmsolutions.ca>
Cc: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
Sent: Monday, March 03, 2003 8:43 PM
Subject: RE: [Mapserver-users] adding shp to mapfile / projection


> Then you need to figure out what's different between the two <g>.  Are
> you running under the same user context in Apache for both setups?
>
> Ed McNierney
> President and Chief Mapmaker
> TopoZone.com / Maps a la carte, Inc.
> 73 Princeton Street, Suite 305
> North Chelmsford, MA  01863
> Phone: (978) 251-4242  Fax: (978) 251-1396
> ed at topozone.com
>
>
> -----Original Message-----
> From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
> Sent: Monday, March 03, 2003 8:40 PM
> To: Ed McNierney; Daniel Morissette
> Cc: MapServer List (E-mail)
> Subject: Re: [Mapserver-users] adding shp to mapfile / projection
>
> Forgot to mention though it's still not working with my other mapfile,
> Paul
> ----- Original Message -----
> From: "Ed McNierney" <ed at topozone.com>
> To: "Paul Dymecki" <millardymecki at sympatico.ca>; "Daniel Morissette"
> <morissette at dmsolutions.ca>
> Cc: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
> Sent: Monday, March 03, 2003 7:54 PM
> Subject: RE: [Mapserver-users] adding shp to mapfile / projection
>
>
> > OK - the issue doesn't change.  You need to know what user context
> your
> > anonymous Web visitors are using, and make sure that that user has
> > permission to read that shapefile.
> >
> > - Ed
> >
> > Ed McNierney
> > President and Chief Mapmaker
> > TopoZone.com / Maps a la carte, Inc.
> > 73 Princeton Street, Suite 305
> > North Chelmsford, MA  01863
> > Phone: (978) 251-4242  Fax: (978) 251-1396
> > ed at topozone.com
> >
> >
> > -----Original Message-----
> > From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
> > Sent: Monday, March 03, 2003 7:51 PM
> > To: Ed McNierney; Daniel Morissette
> > Cc: MapServer List (E-mail)
> > Subject: Re: [Mapserver-users] adding shp to mapfile / projection
> >
> > I'm on winXP but using apache though,
> > Paul
> > ----- Original Message -----
> > From: "Ed McNierney" <ed at topozone.com>
> > To: "Paul Dymecki" <millardymecki at sympatico.ca>; "Daniel Morissette"
> > <morissette at dmsolutions.ca>
> > Cc: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
> > Sent: Monday, March 03, 2003 7:12 PM
> > Subject: RE: [Mapserver-users] adding shp to mapfile / projection
> >
> >
> > > Paul -
> > >
> > > It sounds like your IIS anonymous user account (usually
> > > IUSR_<machinename>) does not have read permission on the directory
> you
> > > originally used for this shapefile.  Can you check that?
> > >
> > > - Ed
> > >
> > > Ed McNierney
> > > President and Chief Mapmaker
> > > TopoZone.com / Maps a la carte, Inc.
> > > 73 Princeton Street, Suite 305
> > > North Chelmsford, MA  01863
> > > Phone: (978) 251-4242  Fax: (978) 251-1396
> > > ed at topozone.com
> > >
> > >
> > > -----Original Message-----
> > > From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
> > > Sent: Monday, March 03, 2003 6:31 PM
> > > To: Daniel Morissette
> > > Cc: MapServer List (E-mail)
> > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection
> > >
> > > Hi All,
> > > Well now i'm able to display my shp file in a map on it's own(had to
> > > move my
> > > data dir to the root of the c-drive) so now just have to get it
> > working
> > > with
> > > my existing map file
> > > Any hints or ideas would be appreciated,
> > > Paul
> > >
> > >
> > > MAP
> > >
> > >   NAME "MAP OF CANADA"
> > >
> > >   STATUS ON
> > >
> > >   #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006
> > >
> > >   EXTENT -2200000 -712631 3072800 3840000
> > >
> > >   SIZE 400 300
> > >
> > >   SHAPEPATH "c:/data-dir"
> > >
> > >   SYMBOLSET "./etc/symbols.sym"
> > >
> > >   FONTSET "./etc/fonts.txt"
> > >
> > >   IMAGECOLOR 255 255 255
> > >
> > >   TRANSPARENT OFF
> > >
> > >   UNITS METERS
> > >
> > >   INTERLACE ON
> > >
> > >   IMAGETYPE GIF
> > >
> > >   IMAGEQUALITY 75
> > >
> > >   WEB
> > >
> > >     MINSCALE 2e+006
> > >
> > >     MAXSCALE 5e+007
> > >
> > >     IMAGEPATH "C:/temp/ms_tmp/"
> > >
> > >     IMAGEURL "/ms_tmp/"
> > >
> > >   END
> > >
> > >   REFERENCE
> > >
> > >     STATUS ON
> > >
> > >     IMAGE "images/keymap.gif"
> > >
> > >     SIZE 100 75
> > >
> > >     EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006
> > >
> > >     COLOR -1 -1 -1
> > >
> > >     OUTLINECOLOR 255 0 0
> > >
> > >     MINBOXSIZE 3
> > >
> > >     MAXBOXSIZE 0
> > >
> > >     MARKER 0
> > >
> > >     MARKERSIZE 0
> > >
> > >   END
> > >
> > >   QUERYMAP
> > >
> > >     STATUS OFF
> > >
> > >     SIZE -1 -1
> > >
> > >     COLOR 255 0 0
> > >
> > >     STYLE HILITE
> > >
> > >   END
> > >
> > >   PROJECTION
> > >
> > >     "init=epsg:42304"
> > >
> > >   END
> > >
> > >   LEGEND
> > >
> > >     STATUS OFF
> > >
> > >     IMAGECOLOR 255 255 255
> > >
> > >     TRANSPARENT FALSE
> > >
> > >     INTERLACE TRUE
> > >
> > >     POSITION LL
> > >
> > >     KEYSIZE 20 10
> > >
> > >     KEYSPACING 5 5
> > >
> > >     TEMPLATE "C:/Program Files/Apache
> > >
> >
> Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm
> > > l"
> > >
> > >     LABEL
> > >
> > >       TYPE BITMAP
> > >
> > >       SIZE MEDIUM
> > >
> > >       OFFSET 0 0
> > >
> > >       BUFFER 0
> > >
> > >       MINDISTANCE -1
> > >
> > >       MINFEATURESIZE -1
> > >
> > >       COLOR 255 0 0
> > >
> > >       PARTIALS TRUE
> > >
> > >       FORCE FALSE
> > >
> > >     END
> > >
> > >   END
> > >
> > >   SCALEBAR
> > >
> > >     STATUS ON
> > >
> > >     COLOR 255 255 255
> > >
> > >     OUTLINECOLOR 0 0 0
> > >
> > >     BACKGROUNDCOLOR 0 0 0
> > >
> > >     IMAGECOLOR 255 255 255
> > >
> > >     TRANSPARENT FALSE
> > >
> > >     UNITS KILOMETERS
> > >
> > >     INTERVALS 5
> > >
> > >     SIZE 150 5
> > >
> > >     STYLE 0
> > >
> > >     POSITION LL
> > >
> > >     INTERLACE TRUE
> > >
> > >     LABEL
> > >
> > >       TYPE BITMAP
> > >
> > >       SIZE SMALL
> > >
> > >       OFFSET 0 0
> > >
> > >       BUFFER 0
> > >
> > >       MINDISTANCE -1
> > >
> > >       MINFEATURESIZE -1
> > >
> > >       COLOR 0 0 0
> > >
> > >       PARTIALS TRUE
> > >
> > >       FORCE FALSE
> > >
> > >     END
> > >
> > >   END
> > >
> > >   LAYER
> > >
> > >     NAME "bathymetry"
> > >
> > >     STATUS ON
> > >
> > >     DATA "bath_mapserver.tif"
> > >
> > >     TYPE RASTER
> > >
> > >     UNITS METERS
> > >
> > >     SIZEUNITS PIXELS
> > >
> > >     TOLERANCE 3
> > >
> > >     TOLERANCEUNITS PIXELS
> > >
> > >     TEMPLATE "ttt.html"
> > >
> > >   END
> > >
> > >
> > >
> > >
> > >
> > >   LAYER
> > >
> > >     NAME "Eman-sites"
> > >
> > >     STATUS OFF
> > >
> > >     DATA "sites.shp"
> > >
> > >     TYPE POINT
> > >
> > >     UNITS METERS
> > >
> > >     SIZEUNITS METERS
> > >
> > >     LABELITEM "Name"
> > >
> > >     TOLERANCE 5
> > >
> > >     TOLERANCEUNITS PIXELS
> > >
> > >     TRANSFORM TRUE
> > >
> > >     TEMPLATE "ttt.html"
> > >
> > >     CLASS
> > >
> > >       NAME "site"
> > >
> > >       SYMBOL 2
> > >
> > >       COLOR 255 51 102
> > >
> > >       SIZE 7
> > >
> > >       MINSIZE 1
> > >
> > >       MAXSIZE 100
> > >
> > >     END
> > >
> > >   END
> > >
> > > END
> > >
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Paul Dymecki" <millardymecki at sympatico.ca>
> > > To: "Daniel Morissette" <morissette at dmsolutions.ca>
> > > Cc: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
> > > Sent: Monday, March 03, 2003 3:58 PM
> > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection
> > >
> > >
> > > > Hi,
> > > >    Yes i think i've covered all the obvious, things, though you
> > never
> > > know.
> > > > Here are my two scripts that query the db and create the shp and
> dbf
> > > files.
> > > >  shp_ukpdate.php queries the db and eman_shp.php has supporting
> > > classes
> > > > thx,
> > > > Paul
> > > > ----- Original Message -----
> > > > From: "Daniel Morissette" <morissette at dmsolutions.ca>
> > > > To: "Paul Dymecki" <millardymecki at sympatico.ca>
> > > > Sent: Monday, March 03, 2003 3:38 PM
> > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection
> > > >
> > > >
> > > > > Paul Dymecki wrote:
> > > > > >
> > > > > > Hi Daniel,
> > > > > >      From talking to people i think i've narrowed it down to a
> > > problem
> > > > with
> > > > > > my shp file format.  Any ways here is my current projection
> > > function,
> > > > create
> > > > > > point, and close() functions if you can see anything that's
> off?
> > > > > > thx,
> > > > > > Paul
> > > > > >
> > > > >
> > > > > From reading the replies on the list this is probably the next
> > > logical
> > > > > thing to check, but without seeing your complete application
> > > including
> > > > > scripts and data nobody can confirm that.
> > > > >
> > > > > Did you make sure that you pass a valid shapefile type to the
> call
> > > to
> > > > > ms_newShapeFileObj()?
> > > > >
> > > > > BTW, please reply via the list, this will increase your chances
> of
> > > > > getting help.
> > > > >
> > > > > Daniel
> > > > > --
> > > > > ------------------------------------------------------------
> > > > >  Daniel Morissette               morissette at dmsolutions.ca
> > > > >  DM Solutions Group              http://www.dmsolutions.ca/
> > > > > ------------------------------------------------------------
> > > >
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at lists.gis.umn.edu
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at lists.gis.umn.edu
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list