shp2tile question

Don Deskins dldeskins at GMAIL.COM
Mon Apr 18 10:20:23 EDT 2005


Steve,

Thank you for your reply.

I have experimented with different numbers and after reading a bit
more, I have discovered that it make no difference (in my case) how I
divide it up.  As a matter of fact, my application performs SLOWER the
more files that I have.

What I am trying to do is to display an area with parcels of land.  I
have two identical layers... one to display all of the parcels and the
other to only display the selected parcel.  It is extremely slow when
querying for by parcel id.  Because of this, I need to put the second
layer (at least) in a database so that the parcelid field can be
indexed.

Thanks,

Don

On 4/11/05, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:
> Don,
> 
> Like I said there is no magic number. If you are most showing all your
> parcels most of the time then there is not value in having it tiled. One
> of the MOST important performance issues is to make sure all your *.shp
> files have a *.qix file.
> 
> Try a different set of tiling parameters and test it again.
> 
> Did you have *.qix on you original shapefile? If not go back to that and
> add one (shptree file.shp) and see how it performs untiled.
> 
> -Steve
> 
> Don Deskins wrote:
> > Bart and Steve,
> >
> > My shapefiles are showing up now... thanks!
> >
> > Now I have a time problem... It seems to take more time to generate
> > the image than it did before.  I am checking for errors now.
> >
> > Thanks again.
> >
> > Don
> >
> >
> > On Apr 11, 2005 3:28 PM, Bart van den Eijnden <bartvde at xs4all.nl> wrote:
> >
> >>Hi Don,
> >>
> >>check the dbf of your generated tileindex (the LOCATION field). I usually
> >>use absolute paths in there. Are there absolute or relative paths to the
> >>files in there?
> >>
> >>Also use TYPE POLYGON. Are you zoomed in enough to have your layer showing
> >>up, since you are using a MAXSCALE setting?
> >>
> >>Best regards,
> >>Bart
> >>
> >>On Mon, 11 Apr 2005 15:24:45 -0400, Don Deskins <dldeskins at gmail.com>
> >>wrote:
> >>
> >>
> >>>Bart (and Steve),
> >>>
> >>>Thanks.
> >>>
> >>>I have my files created and tried to reference this index in my map file:
> >>>
> >>>  ####################################
> >>>  # parcels
> >>>  LAYER
> >>>    NAME 'tileindex'
> >>>    TYPE TILEINDEX
> >>>    DATA '/path/to/tileindex'
> >>>    MAXSCALE 40000
> >>>  END
> >>>
> >>>  LAYER
> >>>    NAME 'SCAP_Cert2004_ParcelsUTM16M'
> >>>    STATUS ON
> >>>    TYPE POLYGON
> >>>    TILEINDEX '/path/to/tileindex'
> >>>    #TILEITEM 'LOCATION'
> >>>    MAXSCALE 40000
> >>>  END
> >>>  ####################################
> >>>
> >>>I get no error but my shapes are not showing up... do you see a
> >>>problem with the above map?
> >>>
> >>>Don
> >>>
> >>>On Apr 11, 2005 2:58 PM, Bart van den Eijnden <bartvde at xs4all.nl> wrote:
> >>>
> >>>>Hi,
> >>>>
> >>>>It is tile4ms, not tile2ms, probably a typo by Steve.
> >>>>
> >>>>It is a Mapserver utility to make a tileindex. Alternatively, you can
> >>>>also
> >>>>use ogrtindex for vector layers and gdaltindex for raster layers.
> >>>>
> >>>>Best regards,
> >>>>Bart
> >>>>
> >>>
> >>--
> >>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
> >>
> >
> >
> >
> > --
> > Don Deskins
> >
> 
> 


-- 
Don Deskins



More information about the mapserver-users mailing list