[Geoserver-users] how to config JTS with Geoserver

Hello dear Justin,
I find in “geoserver\WEB-INF\lib” there are jts-1.7.1.jar and jts-1.7.jar. And I have download a JTS,and run it successfully. Is JTS has been embedded in Geoserver? Referrence to website
“[http://docs.codehaus.org/display/GEOS/selectDerivedFeatureType” I](http://docs.codehaus.org/display/GEOS/selectDerivedFeatureType" I) have made some code as below ,but didn’t success.Could you please guide me to know how to config Geoserver with JTS so that I can use JTS functions in WFS filter? Thank you very much!

ogc:Filter
ogc:PropertyIsBetween

geom

ogc:LowerBoundaryogc:Literal0</ogc:Literal></ogc:LowerBoundary>
ogc:UpperBoundaryogc:Literal150000</ogc:Literal></ogc:UpperBoundary>
</ogc:PropertyIsBetween>
</ogc:Filter>
Sincerely yours,
Yang


150 万 人 同 时 在 玩 的 网 游,你 不 试 试 吗 ?

Hi Yang,

Which version of GeoServer are you using, if there are two versions of
jts around that could be a problem. Yes, jts is embedded in GeoServer
and is the basis of the geotools geometry model.

Looking at the page you reference that appears to be some experimental
work which was performed a few years ago. I do not believe the function
"JTS_GETLENGTH" exists.

However, the function "geomLength" does exist, so if you replace
"JTS_GETLENGTH" with "geomLength" it should work ok. Let me know if it
works for you.

-Justin

yangzhaohui wrote:

Hello dear Justin,
      I find in "geoserver\WEB-INF\lib" there are jts-1.7.1.jar and
jts-1.7.jar. And I have download a JTS,and run it successfully. Is JTS
has been embedded in Geoserver? Referrence to website
"http://docs.codehaus.org/display/GEOS/selectDerivedFeatureType&quot; I have
made some code as below ,but didn't success.Could you please guide me to
know how to config Geoserver with JTS so that I can use JTS functions in
WFS filter? Thank you very much!

  <ogc:Filter>
    <ogc:PropertyIsBetween>
         <Function name="JTS_GETLENGTH">
           <PropertyName>geom</PropertyName>
          </Function>
      <ogc:LowerBoundary><ogc:Literal>0</ogc:Literal></ogc:LowerBoundary>
     
<ogc:UpperBoundary><ogc:Literal>150000</ogc:Literal></ogc:UpperBoundary>
     </ogc:PropertyIsBetween>
  </ogc:Filter>
                                                     Sincerely yours,
                                                           Yang
                                                  
------------------------------------------------------------------------
150 万 人 同 时 在 玩 的 网 游,你 不 试 试 吗 ?
<http://event.mail.163.com/chanel/xyq.htm?from=163_NO1&gt;
!DSPAM:4007,46700859187367180515871!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,46700859187367180515871!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46700859187367180515871!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com