<div dir="ltr">Hi Paul;<div><br></div><div>I have opened <a href="http://trac.osgeo.org/postgis/ticket/2588" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://trac.osgeo.org/<span class="">postgis</span>/ticket/2588</a> and added the patch fix there. Please review it and find the reasonings in comments in the issue.</div>
<div><br></div><div>I would like to also correct errors and warnings on pom.xml of jdbc driver this week.</div><div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 December 2013 19:30, Paul Ramsey <span dir="ltr"><<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We need patches for Java issues as we have no active JDBC/Java maintainers ATM.<br>
<span class="HOEnZb"><font color="#888888"><br>
P.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sat, Dec 21, 2013 at 11:31 AM, Baris Ergun <<a href="mailto:barisergun75@gmail.com">barisergun75@gmail.com</a>> wrote:<br>
> I have tested the issue with latest snapshot 2.1.0SVN for  jdbc driver. The<br>
> GeometryCollection still cannot parse the String value correctly. There is a<br>
> similar issue in postgis extension source codes.<br>
> <a href="http://trac.osgeo.org/postgis/ticket/724" target="_blank">http://trac.osgeo.org/postgis/ticket/724</a><br>
><br>
> So with the Java based jdbc codes it looks like we hit the same case. If I<br>
> could report this as a bug to trac I would do it right away but I dont have<br>
> access to there.<br>
><br>
><br>
> On 21 December 2013 11:57, Baris Ergun <<a href="mailto:barisergun75@gmail.com">barisergun75@gmail.com</a>> wrote:<br>
>><br>
>> Hi Remi;<br>
>><br>
>> Who should I get in touch about this issue related to<br>
>> org.postgis.GeometryCollection constructor in postgis jdbc driver.<br>
>><br>
>> Thanks.<br>
>><br>
>><br>
>> On 18 December 2013 10:53, Baris Ergun <<a href="mailto:barisergun75@gmail.com">barisergun75@gmail.com</a>> wrote:<br>
>>><br>
>>> Exactly correct. I also tried to tell that the problem was originated<br>
>>> from org.postgis.GeometryCollection constructor. So I posted to here to<br>
>>> understand why constructor was behaving like this. This constructor is in<br>
>>> postgis-jdbc.jar . Anyone knowing about this problem on the<br>
>>> org.postgis.GeometryCollection constructor?<br>
>>><br>
>>><br>
>>> On 18 December 2013 10:35, Rémi Cura <<a href="mailto:remi.cura@gmail.com">remi.cura@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Hey,<br>
>>>> using this in sql :<br>
>>>> SELECT ST_AsText(ST_GeomFromText(<br>
>>>> 'GEOMETRYCOLLECTIONM(<br>
>>>> POINTM(10 10 100),<br>
>>>> LINESTRINGM(0 50 100, 100 50 100),<br>
>>>> POLYGONM((25 25 100,75 25 100,75 75 100,25 75 100,25 25 100),(45 45<br>
>>>> 100,55 45 100,55 55 100,45 55 100,45 45 100))<br>
>>>> )'<br>
>>>> ))<br>
>>>><br>
>>>> It gives you the expected output.<br>
>>>> I would guess it is the java function you are using that is faulty (the<br>
>>>> geometrycollection constructer).<br>
>>>><br>
>>>> Cheers,<br>
>>>> Rémi-C<br>
>>>><br>
>>>><br>
>>>> 2013/12/18 Baris Ergun <<a href="mailto:barisergun75@gmail.com">barisergun75@gmail.com</a>><br>
>>>>><br>
>>>>> Hello<br>
>>>>><br>
>>>>> I create a GeometryCollection as below<br>
>>>>><br>
>>>>> GeometryCollection coll = new GeometryCollection(<br>
>>>>>                             "SRID=-1;GEOMETRYCOLLECTIONM(POINTM(10 10<br>
>>>>> 100),LINESTRINGM(0 50 100, 100 50 100),POLYGONM((25 25 100,75 25 100,75 75<br>
>>>>> 100,25 75 100,25 25 100),(45 45 100,55 45 100,55 55 100,45 55 100,45 45<br>
>>>>> 100)))"));<br>
>>>>><br>
>>>>> when I reprint the coll.toString() I see that my geom string is changed<br>
>>>>> to below :<br>
>>>>><br>
>>>>> "SRID=-1;GEOMETRYCOLLECTIONM(POINT(10 10 100),LINESTRING(0 50 100, 100<br>
>>>>> 50 100),POLYGON((25 25 100,75 25 100,75 75 100,25 75 100,25 25 100),(45 45<br>
>>>>> 100,55 45 100,55 55 100,45 55 100,45 45 100)))"<br>
>>>>><br>
>>>>> As you can see GEOMETRYCOLLECTIONM is preserved but POINTM LINESTRINGM<br>
>>>>> and POLYGONM is changed to POINT LINESTRING and POLYGON . And because of<br>
>>>>> this I get cannot mix dimensionality when I am trying to insert this geom to<br>
>>>>> database.<br>
>>>>><br>
>>>>> I have tried this with postgis jdbc driver 1.1.5; 1.3.3 and 2.0.1<br>
>>>>> versions.<br>
>>>>><br>
>>>>> This is a test written in datanucleus orm for geospatial extensions and<br>
>>>>> the test is run against the below table (create script) in postgresql db.<br>
>>>>><br>
>>>>> CREATE TABLE public.samplepggeometrycollectionm<br>
>>>>> (<br>
>>>>>   samplepggeometrycollectionm_id integer NOT NULL DEFAULT<br>
>>>>> nextval('samplepggeometrycollectionm_samplepggeometrycollectionm_id_seq'::regclass),<br>
>>>>>   geom geometry(GeometryCollectionM),<br>
>>>>>   id bigint NOT NULL,<br>
>>>>>   name character varying(255),<br>
>>>>>   CONSTRAINT samplepggeometrycollectionm_pkey PRIMARY KEY<br>
>>>>> (samplepggeometrycollectionm_id)<br>
>>>>> )<br>
>>>>> WITH (<br>
>>>>>   OIDS=FALSE<br>
>>>>> );<br>
>>>>> ALTER TABLE public.samplepggeometrycollectionm<br>
>>>>>   OWNER TO postgres;<br>
>>>>><br>
>>>>> Awaiting ur suggestions.<br>
>>>>> --<br>
>>>>> Baris<br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> postgis-users mailing list<br>
>>>>> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
>>>>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> postgis-users mailing list<br>
>>>> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
>>>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Barış<br>
>>> <a href="http://www.linkedin.com/in/barisergun" target="_blank">www.linkedin.com/in/barisergun</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Barış<br>
>> <a href="http://www.linkedin.com/in/barisergun" target="_blank">www.linkedin.com/in/barisergun</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Barış<br>
> <a href="http://www.linkedin.com/in/barisergun" target="_blank">www.linkedin.com/in/barisergun</a><br>
><br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div dir="ltr">Barış<div><a href="http://www.linkedin.com/in/barisergun" target="_blank">www.linkedin.com/in/barisergun</a><br></div></div>
</div>