[fdo-dev] Classes and properties in SHP providers

Pierre Dalcourt pierre.dalcourt at autodesk.com
Mon Oct 30 07:05:07 EST 2006


My comments:

1.  SHP doesn't support create/destroy datastore.  Part of the challenge
is that a datastore can mean either a single shapefile or a directory of
shapefiles, so the intended meaning would have to be made clear.
Secondly, the scope of ListDatastores command would have to be made
clear as well; if the user connects to a single shapefile (as opposed to
a directory), what does ListDatastores list?  If a user connects to a
single directory, does ListDatastores recurse over the current
directory? 

2.  I don't think so.  You can use SHP Provider to create new
shapefiles, by using the ApplySchema command to create a new schema (or
get an existing one) and then creating a class that corresponds to the
SHP file characteristic you want.  See the SchemaTests unit tests in the
SHP source code for reference.

3.  As mentioned in (1), a SHP datastore is either a single shp file, or
a set of shapefiles;  this is determined at connection time by whether
you specify a single shapefile or a directory name in your connection
string, respectively.

4.  Correct.

5.  Correct.

Pierre

-----Original Message-----
From: Haris Kurtagic [mailto:haris at sl-king.com] 
Sent: October 29, 2006 7:00 AM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] Classes and properties in SHP providers


These ar my find outs:

1. Yes

2. I believe so

3. Yes

4. Yes

5. Yes

Haris


-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net] 
Sent: Sunday, October 29, 2006 12:13 PM
To: fdo-dev
Subject: [fdo-dev] Classes and properties in SHP providers

Hi,

Could anyone confirm if following statements correct for FDO SHP
provider?

1. Currently, SHP provider does not support create/destroy datastore
commands.

2. I can create empty shapefile ie. using shpcreate/dbfcreate utils from
Shapelib package, then I can use these shapefiles to apply schema and
fill with data.

3. SHP data store is interpreted as a directory/set of shapefiles.

4. Feature class definition is mapped to single shapefile.

5. Feature class properties are mapped to columns of a shapefile's DBF
and geometry stored in .shp file.


Thanks very much!
--
Mateusz Loskot
http://mateusz.loskot.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org For additional
commands, e-mail: dev-help at fdo.osgeo.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org





More information about the Fdo_dev mailing list