How choose the rigth geometry field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How choose the rigth geometry field

Andrea Peri
Hi, i have a spatialite.table where There are
Teo geometry fields.

Usually i use this sintax ti use the table.

Table.rowid ad msFID, Tablet.* from tablet

But now i have two fields with geometry.
Is possible ti set mapserver to use one ?

THX, 
A.


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: How choose the rigth geometry field

Andrea Peri
Hi,
I resolve it.

The trick was to define explicitly the geometry field used as "geometry".
Like this sample:

Table.rowid ad msFID, Table.geometry_other as geometry , Tablet.* from table;

The trick is working because the alias for geometry was first in list of fields of the other geometry field (even if named "geometry" himself).

Mapserver , the driver, use the first "geometry" named founded in field list.

Regards,
A.
 

2018-01-06 8:49 GMT+01:00 Andrea Peri <[hidden email]>:
Hi, i have a spatialite.table where There are
Teo geometry fields.

Usually i use this sintax ti use the table.

Table.rowid ad msFID, Tablet.* from tablet

But now i have two fields with geometry.
Is possible ti set mapserver to use one ?

THX, 
A.




--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users