that insert statement is generated in MySQLDialectBasic.java
encodeGeometryValue (
https://github.com/geotools/geotools/blob/master/modules/plugin/jdbc/jdbc-mysql/src/main/java/org/geotools/data/mysql/MySQLDialectBasic.java#L169)
- it uses the standard JTS WKTWriter so you would need to either write a
specific string for multipoints or edit it's output - based on the version
of the database, see
https://stackoverflow.com/questions/34241534/get-mysql-version-with-java
for clues on how to find that out.


Ian

On 7 November 2016 at 17:52, snuffer892 <paolo_t...@hotmail.com> wrote:

> Thanks for the quick response.
> Who generates the mysql insert statment? perhaps the mysql extension of
> geoserver?
> There is a way to modify the insert statment?
> Thanks a lot
>
> ps. from
> https://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html#function_
> geomfromtext
>
> For example, both of the following function calls are valid, whereas before
> MySQL 5.7.9 the second one produces an error:
> ST_MPointFromText('MULTIPOINT (1 1, 2 2, 3 3)')
> ST_MPointFromText('MULTIPOINT ((1 1), (2 2), (3 3))')
>
>
>
> -----
> Paolo Tomè
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/MySQL-problem-tp5294671p5294678.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Ian Turton
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to