On Wed, Mar 18, 2015 at 5:38 PM, Roel De Nijs <[email protected]>
wrote:

>  Hi list,
>
>
>
> Seems I solved this issue myself. When I replace 'outerBoundaryIs' by
> 'exterior', the polygon isn’t empty anymore and the same bunch of features
> as with the GET-request are returned. Yay!
>

Yep, the original GML was invalid, mixing GML 2 and GML3 elements.


>
>
> Now I have another question. When I turned verbose logging on I see the
> following query being executed fort this request:
>
>
>
> SELECT "prop1","prop2" FROM "table1" WHERE
> "the_geom".Filter(geometry::STGeomFromText('POLYGON ((142578.64599609
> 252217.79003906, 73781.897460938 141983.61767578, 287078.38037109
> 146764.85888672, 142578.64599609 252217.79003906))', 31370)) = 1 AND
> "the_geom".STIntersects(geometry::STGeomFromText('POLYGON ((142578.64599609
> 252217.79003906, 73781.897460938 141983.61767578, 287078.38037109
> 146764.85888672, 142578.64599609 252217.79003906))', 31370)) = 1
>
>
>
> Why does the where-clause has two conditions: Filter and STIntersects? I
> would only expecte the STIntersects one.
>

Primary and secondary filter... the first one uses the spatial index, the
second does the in memory filtering.
Or has SQL Server learned to use the spatial index when just seeing
STIntersects?

Even if it does, we'd might have to keep the current syntax for backwards
compatibility with older versions

That said, SQLServer optimizer is really poor and expects some complicated
setup in order to better optimize the queries (basically, writing the query
in more than one bit, setting variables first in a few statements, then
using them in the query) which is difficult to support with our current
shared codebase for all databases... it's not impossible though, we are
basically waiting for people to sponsor this work, as it's not small (won't
fit in anybody's spare time).

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to