óÅÍÅÎÅÎËÏ áÎÄÒÅÑ ha scritto:
> Don't worry. I already see at GeoServer and GeoJson. But GeoJson and simple JSON are different ones. Use of simple JSON for my task is easy than GeoJSON. I can't find simple JSON library at maven repository.
>
>>> But I can't add org.json dependency into pom.xml for maven2. Could you help me? I want to use only org.json.JSONWriter. What the groupId,artifactId,version I need to use in pom.xml?As far as I know the one below is a generic json library, we add
the geo bits ourselves. Yet, I did not write the geojson output
so I may be wrong.
Yes, it is. I have almost complete my simple task. There are limitation:
* Geometry fields doesn't returned at all (I have no reason for this). It will be interesting to add Geometry as GeoJSON, but WFS do it well. And this will be reason only if you want to get "secondary" geometry field(not the feature geometry, but attributes with geometry type).
I name it INFO_FORMAT as "text/json". What is your opinion?
Cheers
Andrea>> WFS already has GeoJson output so you may just want to
>> have a look there (also for the coding, that is)...
>> sorry I haven't told you before, I thought you knew.
>>
>> Anyways, here is what the wfs pom uses (on trunk)
>> <dependency>
>> <groupId>net.sf.json-lib</groupId>
>> <artifactId>json-lib</artifactId>
>> <classifier>jdk13</classifier>
>> </dependency>
>>
>> Cheers
>> Andrea
>>
>
> !DSPAM:4022,473050ff135285210051143!
>