I found the problem. There should be a field name called geom to let the
tinyows recognize the layer. That’s not written in the documentation.
I have another problem.
I created a geom field and I assigned a geometry in postgresql. In GDAL I’m
setting a
OGRPoint pt;
pt.setX( 120 );
pt.setY( 240 );
poFeature->SetGeometry( &pt );
if( poLayer->CreateFeature( poFeature ) != OGRERR_NONE )
{
std::cout <<"error creating a feature"<<endl;
}
The Geometry is set. But When I try to reterive the feature its not working and
I can’t get the next feature.
Also another thing, What format is Geometry data is. I just send X,Y and what
I see in the database is encrypted text, that does not represent anything.
From: Ahmed Tolba
Sent: Monday, February 06, 2017 9:14 AM
To: 'Jeff McKenna'
Cc: [email protected]
Subject: RE: [mapserver-users] getting layers from tinyows
Here is my config .xml and the output from tinyows. I can’t retrieve other
layers
From: mapserver-users [mailto:[email protected]] On
Behalf Of Jeff McKenna
Sent: Sunday, February 05, 2017 5:51 PM
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [mapserver-users] getting layers from tinyows
Hi Brent, for the record I have tested TinyOWS (and upgraded it) for MS4W
3.2.0, which is MapServer 7.0.4
(and the same for MapCache)
-Jeff
_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users