[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Shapefiles, marks and zoom
|
Title: Shapefiles and sld:ExternalGraphic
Hi again,
in addition to my mail some hours ago I found that I
also have problems when using sld:Mark (see my earlier mail) or when I do not
use any sld file at all:
The marks disappear when zooming in to a certain
amount.
This is part of the sld file I'm using, so that should
not be the reason:
<sld:MaxScaleDenominator>1.7976931348623157E308</sld:MaxScaleDenominator>
The
scale when the marks disappear is not always the same for a certain set of
marks. One time all marks disappear when zooming in deeper than 1:2 Mio.,
another time they disappear not before zooming in to
1:750000.
I also
noticed that the marks disappear during panning when because of panning the zoom
reaches the above mentioned value.
All
that happens even when I only have 1 mark.
I did
not see anything about that in the shapefile specs. I specify a bounding box
with x and y set, but z and M (measure) set to 0. And ZoomToLayer works fine for
the shapefile layer.
Is
there anything to pay attention at with respect to the dbf file? What else might
be wrong with me?
Any
hints welcome, cheers
Michael
Hi,
I'm using uDIG 1.1 RC4 and in my
program I create a shapefile of type MultiPoint (shape type 8). Using this
shapefile with uDIG works fine as long as I use a sld file with sld:Mark: All of
my about 50 points are shown.
But when I try to use a sld file with
sld:ExternalGraphic only 1 of those is shown although more than 1 are in the
range of the viewport. When that one currently shown is not in the viewport
anymore (because of panning or zooming in) another one is shown. But as I said
always only 1 at a time is displayed.
Here are the diffs of the two sld
files:
Vergleichen von
(<)D:\Projekte\uDIG\data\pin.sld (2310l Byte)
mit (>)D:\Projekte\uDIG\data\hits.sld
(3959l Byte)
25,28c25,55
<
<sld:ExternalGraphic>
<
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href=""file:/D:/Projekte/uDIG/data/pin.gif">file:/D:/Projekte/uDIG/data/pin.gif"/>
<
<sld:Format>image/gif</sld:Format>
<
</sld:ExternalGraphic>
---
>
<sld:Mark>
>
<sld:WellKnownName>x</sld:WellKnownName>
>
<sld:Fill>
>
<sld:CssParameter name="fill">
>
<ogc:Literal>#FF0000</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="fill-opacity">
>
<ogc:Literal>0.75</ogc:Literal>
>
</sld:CssParameter>
>
</sld:Fill>
>
<sld:Stroke>
>
<sld:CssParameter name="stroke">
>
<ogc:Literal>#000000</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="stroke-linecap">
>
<ogc:Literal>butt</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="stroke-linejoin">
>
<ogc:Literal>miter</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="stroke-opacity">
>
<ogc:Literal>1.0</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="stroke-width">
>
<ogc:Literal>2.0</ogc:Literal>
>
</sld:CssParameter>
>
<sld:CssParameter name="stroke-dashoffset">
>
<ogc:Literal>0.0</ogc:Literal>
>
</sld:CssParameter>
>
</sld:Stroke>
>
</sld:Mark>
33c60
<
<ogc:Literal>75.0</ogc:Literal>
---
>
<ogc:Literal>20.0</ogc:Literal>
Any hints where I do something
wrong?
Cheers
Michael
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel