วันอังคารที่ 3 ธันวาคม พ.ศ. 2556
วันพุธที่ 30 มกราคม พ.ศ. 2556
Geoserver cut off point symbols
That's because of tiled requests. A workaround would be to add a {singleTile: true} option at OpenLayers.Layer.WMS instantiation.
2011/1/19 Robert Buckley <robertdbuck...@yahoo.com>: > Hi, > > in my point SLD there are certain points which never get rendered fully. > Either the circle is not rendered, or the labels are cut out. > > > Is there a work-around for this behaviour? > > thanks, > > Rob
http://www.mail-archive.com/geoserver-users@lists.sourceforge.net/msg02916.html
วันพุธที่ 23 มกราคม พ.ศ. 2556
PHP Coding on GeoServer
I want to use a Php script to retrieve information from the .db
file of a shapefile saved as a layer in Geoserver. I need to retrieve
attribute data from the layer and present it at the client side. Is this possible with the functionality provided by the geoserver?
If this is your specific question, no. Geoserver is a Java application, PHP is a language/server environment. They do not mix, in any way besides PHP, for instance, requesting things from Geoserver via REST or some OGC standard.
If this is your specific question, no. Geoserver is a Java application, PHP is a language/server environment. They do not mix, in any way besides PHP, for instance, requesting things from Geoserver via REST or some OGC standard.
If your question is whether PHP can read attributes from shapefiles, the answer is a kind of, see its dbase support.
-------------------------------------------
yes it is very possible and called web feature service, you can make wfs requests to geoserver with curl library and pass that information to your client. data from geoserver is served as GML,JSON etc. you need to parse this information
how do I get php to connect automatically to GeoServer?
You can use the GeoServer REST API. With it, you can create and retrieve workspaces, featuretypes/layers, intereact with PostGIS, etc, from within your PHP application. Refer to the REST documentation and PHP REST Examples for details.
วันศุกร์ที่ 18 มกราคม พ.ศ. 2556
วันจันทร์ที่ 7 มกราคม พ.ศ. 2556
OGC Filter - การกำหนดเงือนไข
Equal
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
Less Than
<ogc:Filter>
<ogc:PropertyIsLessThan>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>9</ogc:Literal>
</ogc:PropertyIsLessThan>
</ogc:Filter>
Greater Than
<ogc:Filter>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:Filter>
Less Than or Equal
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
Less Than
<ogc:Filter>
<ogc:PropertyIsLessThan>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>9</ogc:Literal>
</ogc:PropertyIsLessThan>
</ogc:Filter>
Greater Than
<ogc:Filter>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:Filter>
Less Than or Equal
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>propName</ogc:PropertyName>
<ogc:Literal>5</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:Filter>
Greater Than or Equal
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:PropertyIsGreaterThanOrEqualTo>
<ogc:PropertyName>propName</ogc:PropertyName>
<ogc:Literal>5</ogc:Literal>
</ogc:PropertyIsGreaterThanOrEqualTo>
</ogc:Filter>
Less Than and Greater Than
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:And>
<ogc:PropertyIsLessThan>
<ogc:PropertyName>propName</ogc:PropertyName>
<ogc:Literal>25</ogc:Literal>
</ogc:PropertyIsLessThan>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>propName</ogc:PropertyName>
<ogc:Literal>15</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:And>
</ogc:Filter>
แสดง feature มากกว่า 1 ค่า เช่น แสดงพื้นที่ Zone 1 และ Zone 2
<ogc:Filter>
<ogc:Or>
<ogc:PropertyIsEqualTo>
<ogc:Filter>
<ogc:Or>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Zone</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
แสดง feature โดย feature นั้นจะต้องมีค่าทุกค่าตามที่ระบุในแต่ละ field
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
</ogc:Filter>
แสดง feature โดย feature นั้นจะต้องมีค่าทุกค่าตามที่ระบุในแต่ละ field
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>nPOITYPEID</ogc:PropertyName>
<ogc:Literal>20</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>LevelStyle</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>nCost</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:And>
</ogc:Filter>
Specifying a range of values:
<Filter>
</ogc:Filter>
Specifying a range of values:
<Filter>
<And>
<PropertyIsGreaterThanOrEqualTo>
<PropertyName>ACRES</PropertyName>
<Literal>0.2</Literal>
</PropertyIsGreaterThanOrEqualTo>
<PropertyIsLessThanOrEqualTo>
<PropertyName>ACRES</PropertyName>
<Literal>0.99</Literal>
</PropertyIsLessThanOrEqualTo>
</And>
</Filter>
Condition Select And OR
<Filter>
<Filter>
<And>
<PropertyIsEqualTo>
<PropertyName>TYPE</PropertyName>
<Literal>HIGH</Literal>
</PropertyIsEqualTo>
<Or>
<PropertyIsEqualTo>
<PropertyName>CODE</PropertyName>
<Literal>2</Literal>
</PropertyIsEqualTo>
<PropertyIsEqualTo>
<PropertyName>CODE</PropertyName>
<Literal>3</Literal>
</PropertyIsEqualTo>
</Or>
</And>
</Filter>
สมัครสมาชิก:
บทความ (Atom)