EnglishFrenchSpanish

OnWorks favicon

shptree - Online in the Cloud

Run shptree in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command shptree that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


shptree - create a quadtree-based spatial index for a Shape data set

SYNOPSIS


shptree [ shpfile [depth] [index_format] | -v]

DESCRIPTION


shptree creates a quadtree-based spatial index for a Shape data set. The default tree
depth is calculated so that each tree node (quadtree cell) contains 8 shapes. Do not use
the default with point files, a value between 6 and 10 seems to work ok. Your millage may
vary and you'll need to do some experimenting.

This utility is a must for any MapServer application that uses Shape data sets. shptree
creates a spatial index of your Shape data set, using a quadtree method. This means that
MapServer will use this index to quickly find the appropriate shapes to draw. It creates a
file of the same name as your Shape data set, with a .qix file extension. The quadtree
method breaks the file into 4 quadrants, recursively until only a few shapes are contained
in each quadrant. This minimum number can be set with the depth parameter of the command.

OPTIONS


shpfile
The name of the .shp file to index.

depth (Optional) The maximum depth of the index to create, default is 0 meaning that
shptree will calculate a reasonable default depth.

index_format
(Optional) One of:

NL LSB byte order, using new index format

NM MSB byte order, using new index format

The following old format options are deprecated:

N Native byte order

L LSB (intel) byte order

M MSB byte order

The default index_format on this system is: NL

-v Display mapserver version and build options.

NOTES


Shape data sets are native to MapServer, and therefore do not require the .shp extension
in the DATA path of the LAYER. In fact, in order for MapServer to use the .qix extension
you MUST NOT specify the extension, for example:

LAYER
...
DATA "us_states" #MapServer will search for us_states.qix and will use it
...
END

LAYER
...
DATA "us_states.shp" #MapServer will search for us_states.shp.qix and won't find it
...
END

Note: As of MapServer 5.2 the qix will be used even when the .shp extension is specified.

EXAMPLE


shptree us_states.shp
creating index of new LSB format

Result:
A file named 'us_states.qix' is created in the same location. (note that you can
use the shptreevis(1) utility to view the actual quadtree quadrants that are used
by MapServer in this qix file)

Use shptree online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Avogadro
    Avogadro
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • 2
    XMLTV
    XMLTV
    XMLTV is a set of programs to process
    TV (tvguide) listings and help manage
    your TV viewing, storing listings in an
    XML-based format. There are utilities to
    do...
    Download XMLTV
  • 3
    strikr
    strikr
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    (commercial)...
    Download strikr
  • 5
    GIFLIB
    GIFLIB
    giflib is a library for reading and
    writing gif images. It is API and ABI
    compatible with libungif which was in
    wide use while the LZW compression
    algorithm was...
    Download GIFLIB
  • 6
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • More »

Linux commands

  • 1
    4s-queryJ
    4s-queryJ
    4s-query � Run SPARQL queries on a
    4store storage backend ...
    Run 4s-queryJ
  • 2
    4ti2-circuits
    4ti2-circuits
    4ti2 - software package for algebraic,
    geometric and combinatorial problems on
    linear spaces ...
    Run 4ti2-circuits
  • 3
    cpufreq-set
    cpufreq-set
    cpufreq-set - A small tool which allows
    to modify cpufreq settings. SYNTAX:
    cpufreq-set [options] DESCRIPTION:
    cpufreq-set allows you to modify cpufreq
    setting...
    Run cpufreq-set
  • 4
    cpufreqd-get
    cpufreqd-get
    cpufreqd-get - Issues "get" commands to
    cpufreqd. SYNTAX: cpufreqd-get [-l]
    PARAMETERS: -l list applied Profiles for
    all cpus. DESCRIPTION: cpufreqd-get
    issues...
    Run cpufreqd-get
  • 5
    gammu
    gammu
    gammu - Does some neat things with your
    cellular phone or modem. ...
    Run gammu
  • 6
    ganglia2pcp
    ganglia2pcp
    ganglia2pcp - import ganglia data and
    create a PCP archive ...
    Run ganglia2pcp
  • More »

Ad