Thanks for looking into this.
I'll try again. Here we go:
I building an program in mapbasic and got it finished localy (with TAB
files). So the user can update certain layers, add information and add
symbol to build a nice layout window which can be printed.
But now the have seen the program, and the want to use some of the
layers on a portable GIS so the can use it for checks on buildings. I
thought it would be handy to use an WFS server to do this. So i don`t
save the layers localy i save them on an server (much safer and also
for multiuser).
I rebuild my TAB to shape files and put them in a installation from
geoserver at home (very simple installation i must say). And with this
my first problem came. shp support only 10 character column names.....
(no i did not know).
I tried SQL servr 2008 (big installation, and not working)
I tried PostGIS, working but more difficult because i did not know how
to work with it (dont use the the guide on
geoserver.org)
Example of Create table for PostGIS
CREATE TABLE "Custom_Polyline"
(gid serial PRIMARY KEY,
"DBK_ID" integer,
"Type" text
);
SELECT AddGeometryColumn
('','Custom_Polyline','the_geom','28992','GEOMETRY',2);
Now this works almost all the time and i can`t use integer with more
then 4 numbers. (something to do with number setting. Over here its
100.000,45) I asked mapinfo to check it out.
Sometimes i get an error from geoserver with "Mark Invalid". But i`ve
i try again and again it works..... (i dont understand it)
Opening in MapInfo
So the server works (almost al the time :-) )
I open the WFS-T layer in mapinfo and use the generated xml in my
mapbasicprogram to open it automatic.
But i need to open the FULL table and then edit this table and save it
back. I want use the row filter to open only one building and not all
of them. This filter is within the XML file and that is because i want
to edit the xml or rebuild it.
example how i register the table
Register Table ApplicationDirectory$()+"XML/WFS_"+sTablename+".xml"
Type "WFS" Charset "WindowsLatin1" CoordSys Earth Projection 20, 109,
"m", 5.387638889, 52.156160556, 0.9999079, 155000, 463000 Bounds
(-99845000, -99537000) (100155000, 100463000) Symbol (35,0,12)
linestyle Pen (1,2,0) regionstyle Pen (1,2,0) Brush
(2,16777215,16777215) Editable Into ApplicationDirectory$()
+"Server_Files/"+"tbl"+sTablename+".TAB"
Open Table ApplicationDirectory$()+"Server_Files/"+"tbl"+sTablename
+".TAB"