Permalink
Browse files

updated README

  • Loading branch information...
1 parent bb69bb0 commit ec1a1921972786294978854d7c0715ef019edb3b @odoe committed Oct 20, 2011
Showing with 4 additions and 12 deletions.
  1. +4 −12 README
View
16 README
@@ -9,7 +9,9 @@ To currently run this script you will need to add the samples/data folder to the
You should have a folder structure as follows
node_fgdb
- data
-- nodefgdb.cc
+- fgdb.cc
+- fgdb.js
+- test.js
- wscript
Edit the wscript file so that it points your directory.
@@ -21,19 +23,9 @@ You should get some ignore #pragma warning messages followed by a 'build' finish
Start node from the extensions root directory
-odoe@linuxbox:~/dev/node_fgdb$ node
-> var test = require("./build/default/nodefgdb");
-> var fgdb = new test.NodeFGDB();
+odoe@linuxbox:~/dev/node_fgdb$ node test.js
As of right now, it only pulls data from a single Table, the Cities Table. This will be configurable in future releases.
-You can find the field names by using the fields() method.
-> fgdb.fields();
-'OBJECTID, Shape, CITY_FIPS, CITY_NAME, STATE_FIPS, STATE_NAME, STATE_CITY, TYPE, CAPITAL, ELEVATION, POP1990, POPCAT'
-
-Now that you know the field names, you can write your own valid query.
-> var query = "CITY_NAME LIKE 'Port%'";
-> fgdb.query(query);
-'Port Angeles, Portland, Portland, Portsmouth, Port Huron, Portage, Port Chester, Portage Lakes, Portage, Port Washington, Portsmouth, Portsmouth, Porterville, Portales, Port Hueneme, Port Neches, Port Arthur, Port Orange, Port Lavaca, Portland, Port St. Lucie, Port Charlotte'
This is so far a proof of concept just to show that the ESRI File Geodatabase API could be used as a node.js extension.
Now that I have gotten this much working, I will be working on adding basic query functionality and hope to implement GeoJSON/ESRIJson.

0 comments on commit ec1a192

Please sign in to comment.